]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blobdiff - htsn-import.cabal
Remove errant man page option and fix a typo.
[dead/htsn-import.git] / htsn-import.cabal
index 99df37f27359f157257a0b3c22b3969e4ac06e53..6b0f3c0c88d48aeecf3552d6548a9e740f098fbd 100644 (file)
@@ -8,12 +8,18 @@ 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
   makefile
   test/xml/*.xml
   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:
@@ -123,8 +129,13 @@ executable htsn-import
 
   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
@@ -171,6 +182,34 @@ test-suite testsuite
     -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
+    -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-import.git