]> gitweb.michael.orlitzky.com - hath.git/blobdiff - hath.cabal
hath.cabal: specify default-language for medium-age cabals.
[hath.git] / hath.cabal
index b32d870f0cf5a890861092c62a28cfe261067f22..6e28afe7b816430a04b1f6428209b5c25ea5cbac 100644 (file)
@@ -1,6 +1,6 @@
 name:           hath
-version:        0.4.1
-cabal-version:  >= 1.8
+version:        0.5.2
+cabal-version:  >= 1.12
 author:         Michael Orlitzky
 maintainer:    Michael Orlitzky <michael@orlitzky.com>
 homepage:       http://michael.orlitzky.com/code/hath.xhtml
@@ -87,6 +87,8 @@ description:
 
 
 executable hath
+  default-language:
+    Haskell2010
 
   main-is:
     Main.hs
@@ -103,89 +105,51 @@ executable hath
     Maskable
     Maskbits
     Octet
+    Paths_hath
 
   build-depends:
-    base                        == 4.*,
+    base                        >= 4.15,
     cmdargs                     >= 0.10,
     split                       >= 0.2,
     tasty                       >= 0.8,
     tasty-hunit                 >= 0.8,
     tasty-quickcheck            >= 0.8.1
 
-  ghc-options:
-    -Weverything
-    -Wno-implicit-prelude
-    -Wno-safe
-    -Wno-unsafe
-    -Wno-all-missed-specialisations
-    -rtsopts
-    -threaded
-    -optc-O3
-    -optc-march=native
-    -O2
-
 
 test-suite testsuite
   type: exitcode-stdio-1.0
   hs-source-dirs: src test
+  default-language: Haskell2010
   main-is: TestSuite.hs
 
+  other-modules:
+    Bit
+    Cidr
+    IPv4Address
+    Maskable
+    Maskbits
+    Octet
+
   build-depends:
-    base                        == 4.*,
-    cmdargs                     >= 0.10,
+    base                        >= 4.15,
     split                       >= 0.2,
     tasty                       >= 0.8,
     tasty-hunit                 >= 0.8,
     tasty-quickcheck            >= 0.8.1
 
 
-  -- It's not entirely clear to me why I have to reproduce all of this.
-  ghc-options:
-    -Weverything
-    -Wno-implicit-prelude
-    -Wno-safe
-    -Wno-unsafe
-    -Wno-all-missed-specialisations
-    -rtsopts
-    -threaded
-    -optc-O3
-    -optc-march=native
-    -O2
-
-
 -- These won't work without shelltestrunner installed in your
 -- $PATH. Maybe there is some way to tell Cabal that.
 test-suite shelltests
   type: exitcode-stdio-1.0
   hs-source-dirs: test
+  default-language: Haskell2010
   main-is: ShellTests.hs
 
   build-depends:
-    base                        == 4.*,
-    cmdargs                     >= 0.10,
-    process                     >= 1.1,
-    split                       >= 0.2,
-    tasty                       >= 0.8,
-    tasty-hunit                 >= 0.8,
-    tasty-quickcheck            >= 0.8.1
+    base                        >= 4.15,
+    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
-    -rtsopts
-    -threaded
-    -optc-O3
-    -optc-march=native
-    -O2
 
 source-repository head
   type: git