]> gitweb.michael.orlitzky.com - dead/harbl.git/blobdiff - harbl.cabal
Add a "new" exit code (shift them all, really) for a host being blacklisted.
[dead/harbl.git] / harbl.cabal
index 6ae0bba189d9020e083abd14fa14b087b6aff60a..91ae36095160a4a53d0d4dc64ce1d0cc00a2dbfa 100644 (file)
@@ -13,28 +13,71 @@ description:
   Provides utility functions for performing blacklist lookups.
 
 
-executable harbl
+library
   build-depends:
     base                        >= 4.6 && < 5,
+    bytestring                  >= 0.9,
     dns                         >= 2,
     iproute                     >= 1.4,
     parsec                      >= 3,
     tasty                       >= 0.8,
     tasty-hunit                 >= 0.8
 
-  main-is:
-    Main.hs
+  exposed-modules:
+    Network.DNS.RBL
+    Network.DNS.RBL.Tests
 
   other-modules:
-    Network.DNS.RBL
-    Network.DNS.RBL.Domain
+    Network.DNS.RBL.Domain.Digit
+    Network.DNS.RBL.Domain.Domain
+    Network.DNS.RBL.Domain.Hyphen
+    Network.DNS.RBL.Domain.Label
+    Network.DNS.RBL.Domain.LdhStr
+    Network.DNS.RBL.Domain.LdhStrLetDig
+    Network.DNS.RBL.Domain.LetDig
+    Network.DNS.RBL.Domain.LetDigHyp
+    Network.DNS.RBL.Domain.Letter
+    Network.DNS.RBL.Domain.Subdomain
     Network.DNS.RBL.Host
     Network.DNS.RBL.IPv4Pattern
     Network.DNS.RBL.Pretty
+    Network.DNS.RBL.Reversible
     Network.DNS.RBL.Site
 
-  hs-source-dirs:
-    src/
+  hs-source-dirs: harbl/src
+
+  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
+
+  ghc-prof-options:
+    -prof
+    -fprof-auto
+    -fprof-cafs
+
+
+executable harbl
+  build-depends:
+    base                        >= 4.6 && < 5,
+    cmdargs                     >= 0.10.6,
+    configurator                >= 0.2,
+    directory,
+    filepath,
+    harbl,
+    parsec                      >= 3
+
+  main-is: Main.hs
+
+  hs-source-dirs: harbl-cli/src
 
   ghc-options:
     -Wall
@@ -57,13 +100,11 @@ executable harbl
 
 test-suite testsuite
   type: exitcode-stdio-1.0
-  hs-source-dirs: src test
+  hs-source-dirs: test
   main-is: TestSuite.hs
   build-depends:
     base                        >= 4.6 && < 5,
-    dns                         >= 2,
-    iproute                     >= 1.4,
-    parsec                      >= 3,
+    harbl,
     tasty                       >= 0.8,
     tasty-hunit                 >= 0.8