]> gitweb.michael.orlitzky.com - hath.git/blobdiff - hath.cabal
hath.cabal: simplify GHC flags used in the shelltest suite.
[hath.git] / hath.cabal
index 9bff3155c01a87576ed974f5c4ef22e03350c2f3..b7c6e215f450d7ba2b1428abaa4b7cbed1f0c8f2 100644 (file)
@@ -1,9 +1,9 @@
 name:           hath
-version:        0.3.0
+version:        0.4.2
 cabal-version:  >= 1.8
 author:         Michael Orlitzky
 maintainer:    Michael Orlitzky <michael@orlitzky.com>
-homepage:       http://michael.orlitzky.com/code/hath.php
+homepage:       http://michael.orlitzky.com/code/hath.xhtml
 category:       Utils
 license:        AGPL-3
 license-file:   doc/LICENSE
@@ -103,48 +103,45 @@ executable hath
     Maskable
     Maskbits
     Octet
+    Paths_hath
 
   build-depends:
-    base                        == 4.*,
+    base                        >= 4.9 && < 5,
     cmdargs                     >= 0.10,
-    MissingH                    >= 1.2,
     split                       >= 0.2,
     tasty                       >= 0.8,
     tasty-hunit                 >= 0.8,
     tasty-quickcheck            >= 0.8.1
 
   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
+    -Weverything
+    -Wno-implicit-prelude
+    -Wno-safe
+    -Wno-unsafe
+    -Wno-all-missed-specialisations
     -rtsopts
     -threaded
     -optc-O3
     -optc-march=native
     -O2
 
-  ghc-prof-options:
-    -prof
-    -auto-all
-    -caf-all
-
 
 test-suite testsuite
   type: exitcode-stdio-1.0
   hs-source-dirs: src test
   main-is: TestSuite.hs
 
+  other-modules:
+    Bit
+    Cidr
+    IPv4Address
+    Maskable
+    Maskbits
+    Octet
+
   build-depends:
     base                        == 4.*,
     cmdargs                     >= 0.10,
-    MissingH                    >= 1.2,
     split                       >= 0.2,
     tasty                       >= 0.8,
     tasty-hunit                 >= 0.8,
@@ -153,16 +150,11 @@ test-suite testsuite
 
   -- 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
+    -Weverything
+    -Wno-implicit-prelude
+    -Wno-safe
+    -Wno-unsafe
+    -Wno-all-missed-specialisations
     -rtsopts
     -threaded
     -optc-O3
@@ -179,26 +171,15 @@ test-suite shelltests
 
   build-depends:
     base                        == 4.*,
-    cmdargs                     >= 0.10,
-    MissingH                    >= 1.2,
-    process                     >= 1.1,
-    split                       >= 0.2,
-    tasty                       >= 0.8,
-    tasty-hunit                 >= 0.8,
-    tasty-quickcheck            >= 0.8.1
+    process                     >= 1.1
 
   -- 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
+    -Weverything
+    -Wno-implicit-prelude
+    -Wno-safe
+    -Wno-unsafe
+    -Wno-all-missed-specialisations
     -rtsopts
     -threaded
     -optc-O3
@@ -207,5 +188,5 @@ test-suite shelltests
 
 source-repository head
   type: git
-  location: http://michael.orlitzky.com/git/hath.git
+  location: http://gitweb.michael.orlitzky.com/hath.git
   branch: master