diff --git a/ShadowLibrary/Core.hs b/ShadowLibrary/Core.hs index 678df33..2cbc0c6 100644 --- a/ShadowLibrary/Core.hs +++ b/ShadowLibrary/Core.hs @@ -33,7 +33,7 @@ import Data.Tree.NTree.TypeDefs import Data.Maybe import Control.Monad.Trans import Text.XML.HXT.XPath --- import Text.XML.HXT.Curl +import Text.XML.HXT.Curl import Text.XML.HXT.HTTP import Text.Regex.TDFA @@ -64,8 +64,8 @@ downloadDocument = readFromDocument [withParseHTML yes, withEncodingErrors no, withPreserveComment yes, withStrictInput yes, - withHTTP [] --- withCurl [("curl--user-agent","AMU Digital Libraries Indexing Agent")] +-- withHTTP [] + withCurl [("curl--user-agent","AMU Digital Libraries Indexing Agent")] ] downloadDocumentWithEncoding enc = readFromDocument [withParseHTML yes, @@ -73,13 +73,13 @@ downloadDocumentWithEncoding enc = readFromDocument [withParseHTML yes, withEncodingErrors no, withPreserveComment yes, withInputEncoding enc, - withHTTP []] --- withCurl []] +-- withHTTP []] + withCurl []] downloadXmlDocument = readFromDocument [withWarnings no, withEncodingErrors no, - withHTTP []] --- withCurl [] ] +-- withHTTP []] + withCurl [] ] data ShadowLibrary = ShadowLibrary { logoUrl :: Maybe String, diff --git a/shadow-library.cabal b/shadow-library.cabal index 3e1bd4e..64ad077 100644 --- a/shadow-library.cabal +++ b/shadow-library.cabal @@ -5,8 +5,8 @@ description: Please see README.md homepage: http://github.com/name/project license: Proprietary license-file: LICENSE -author: Your name here -maintainer: your.address@example.com +author: Szymon ParafiƄski +maintainer: szypar@st.amu.edu.pl -- copyright: category: Web build-type: Simple @@ -61,7 +61,19 @@ executable almanachmuszyny , shadow-library default-language: Haskell2010 +executable czasopisma + hs-source-dirs: app + main-is: czasopisma.hs + ghc-options: -threaded -rtsopts -with-rtsopts=-N + build-depends: base + , hxt + , hxt-xpath + , hxt-curl + , MissingH + , regex-posix + , shadow-library + default-language: Haskell2010 source-repository head type: git - location: https://github.com/name/project + location: https://git.wmi.amu.edu.pl/s444018/twilight-library