X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhtsn.git;a=blobdiff_plain;f=htsn.cabal;h=74a789f5856ed9c2d37cd38b49b56cb22b330ee9;hp=ed97657a6ce55d4471514145ff76bde32a2cce77;hb=fdd40277556133bd14cf0a3f13749f4663b5f3ba;hpb=5eece26fd6363c5f9af69762cd1c61fb95bd9091 diff --git a/htsn.cabal b/htsn.cabal index ed97657..74a789f 100644 --- a/htsn.cabal +++ b/htsn.cabal @@ -12,7 +12,25 @@ extra-source-files: synopsis: Parse XML files from The Sports Network feed. description: - Parse XML files from The Sports Network feed. + The Sports Network offers an XML feed + containing various sports news and statistics. The goal of /htsn/ + is to watch the XML feed and parse the individual XML documents into + files. + . + Once started, we will choose an XML feed host to connect to. The + choice is made from a list in a round-robin fashion, and by default, + the list contains all known TSN feed hosts. Once we have a connection, + your username and password are sent. If they are accepted, we begin to + parse the feed saving all XML files to the configured output directory. + . + If we encounter an error (say, the connection is dropped), then we + will attempt to connect to the next host in the list after waiting + five seconds. This process continues indefinitely. + . + The program can run either interactively (that is, outputting to the + console), or as a daemon. + . + /Full documentation can be found in the included man page./ executable htsn build-depends: @@ -22,8 +40,13 @@ executable htsn configurator == 0.2.*, directory == 1.2.*, filepath == 1.3.*, + hdaemonize == 0.4.*, + hslogger == 1.2.*, hxt == 9.3.*, + MissingH == 1.2.*, network == 2.4.*, + tasty == 0.5.*, + tasty-hunit == 0.4.*, transformers == 0.3.*, unix == 2.6.* @@ -55,3 +78,49 @@ executable htsn -auto-all -caf-all + + +test-suite testsuite + type: exitcode-stdio-1.0 + hs-source-dirs: src test + main-is: TestSuite.hs + build-depends: + ansi-terminal == 0.6.*, + base == 4.*, + cmdargs >= 0.10.6, + configurator == 0.2.*, + directory == 1.2.*, + filepath == 1.3.*, + hdaemonize == 0.4.*, + hslogger == 1.2.*, + hxt == 9.3.*, + MissingH == 1.2.*, + network == 2.4.*, + tasty == 0.5.*, + tasty-hunit == 0.4.*, + transformers == 0.3.*, + unix == 2.6.* + + -- It's not entirely clear to me why I have to reproduce all of this. + ghc-options: + -Wall + -fwarn-hi-shadowing + -fwarn-missing-signatures + -fwarn-name-shadowing + -fwarn-orphans + -fwarn-type-defaults + -fwarn-tabs + -fwarn-incomplete-record-updates + -fwarn-monomorphism-restriction + -fwarn-unused-do-bind + -rtsopts + -threaded + -optc-O3 + -optc-march=native + -O2 + + +source-repository head + type: git + location: http://michael.orlitzky.com/git/htsn.git + branch: master