]> gitweb.michael.orlitzky.com - dead/harbl.git/blobdiff - harbl.cabal
Move the Pretty class into its own module.
[dead/harbl.git] / harbl.cabal
index b497fb63efb6c73b63940917ed72d682b2db87ae..17e4fcaaf0a53a33f08fde39754bdb26da91da4f 100644 (file)
@@ -4,7 +4,7 @@ cabal-version:  >= 1.8
 author:         Michael Orlitzky
 maintainer:    Michael Orlitzky <michael@orlitzky.com>
 category:       Utils
-license:        GPL-3
+license:        AGPL-3
 license-file:   doc/LICENSE
 build-type:     Simple
 synopsis:
@@ -16,11 +16,17 @@ description:
 executable harbl
   build-depends:
     base                        >= 4.6 && < 5,
-    parsec                      >= 3
+    parsec                      >= 3,
+    tasty                       >= 0.8,
+    tasty-hunit                 >= 0.8
 
   main-is:
     Main.hs
 
+  other-modules:
+    DnsblSite
+    IPv4Pattern
+
   hs-source-dirs:
     src/
 
@@ -42,6 +48,61 @@ executable harbl
     -fprof-auto
     -fprof-cafs
 
+
+test-suite testsuite
+  type: exitcode-stdio-1.0
+  hs-source-dirs: src test
+  main-is: TestSuite.hs
+  build-depends:
+    base                        >= 4.6 && < 5,
+    parsec                      >= 3,
+    tasty                       >= 0.8,
+    tasty-hunit                 >= 0.8
+
+  -- 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.6 && < 5,
+    -- Additional test dependencies.
+    doctest   >= 0.9,
+    filemanip >= 0.3.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/harbl.git