forked from filipg/twilight-library
add new file to cabal and modify Core.hs
This commit is contained in:
parent
76146d4e09
commit
d6f50c859b
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user