]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blobdiff - htsn-import.cabal
Disable the threaded runtime for now and drop overkill CFLAGS.
[dead/htsn-import.git] / htsn-import.cabal
index 99df37f27359f157257a0b3c22b3969e4ac06e53..2c6c5426c672cefc9eaca31da18dd80a03e250a7 100644 (file)
@@ -8,12 +8,22 @@ license:        GPL-3
 license-file:   doc/LICENSE
 build-type:     Simple
 extra-source-files:
-  doc/htsnrc-import.example
+  doc/dbschema/*.png
+  doc/htsn-importrc.example
   doc/man1/htsn-import.1
+  doc/README.dbschema
+  doc/README.schemagen
+  doc/TODO
   makefile
   test/xml/*.xml
+  test/xml/*.dtd
   schema/*.dtd
-  schemagen/*/*.xml
+  schemagen/Heartbeat/*.xml
+  schemagen/injuriesxml/*.xml
+  schemagen/Injuries_Detail_XML/*.xml
+  schemagen/newsxml/*.xml
+  schemagen/Odds_XML/*.xml
+  schemagen/weatherxml/*.xml
 synopsis:
   Import XML files from The Sports Network into an RDBMS.
 description:
@@ -94,6 +104,7 @@ executable htsn-import
     ExitCodes
     OptionalConfiguration
     TSN.Codegen
+    TSN.Database
     TSN.DbImport
     TSN.Picklers
     TSN.XmlImport
@@ -102,6 +113,7 @@ executable htsn-import
     TSN.XML.InjuriesDetail
     TSN.XML.News
     TSN.XML.Odds
+    TSN.XML.Weather
     Xml
 
   ghc-options:
@@ -115,16 +127,17 @@ executable htsn-import
     -fwarn-incomplete-record-updates
     -fwarn-monomorphism-restriction
     -fwarn-unused-do-bind
-    -rtsopts
-    -threaded
-    -optc-O3
-    -optc-march=native
     -O2
 
   ghc-prof-options:
     -prof
-    -auto-all
-    -caf-all
+    -fprof-auto
+    -fprof-cafs
+    -- The following unbreak profiling with template haskell. We have
+    -- to build the program twice; once without profile and again with
+    -- these flags.
+    -hisuf hi_p
+    -osuf o_p
 
 
 test-suite testsuite
@@ -152,6 +165,30 @@ test-suite testsuite
     transformers                == 0.3.*,
     tuple                       == 0.2.*
 
+  -- 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
+    -O2
+
+
+test-suite doctests
+  type: exitcode-stdio-1.0
+  hs-source-dirs: test
+  main-is: Doctests.hs
+  build-depends:
+    base      == 4.*,
+    -- Additional test dependencies.
+    doctest   == 0.9.*
+
   -- It's not entirely clear to me why I have to reproduce all of this.
   ghc-options:
     -Wall