]> gitweb.michael.orlitzky.com - dead/harbl.git/blobdiff - harbl.cabal
Replace 'UserDomain' with 'Host' in the library.
[dead/harbl.git] / harbl.cabal
index 17e4fcaaf0a53a33f08fde39754bdb26da91da4f..8f4401fd7e0c823baba01f34fd49ba472e2110fd 100644 (file)
@@ -13,22 +13,63 @@ 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
 
   other-modules:
-    DnsblSite
-    IPv4Pattern
+    Network.DNS.RBL.Domain
+    Network.DNS.RBL.Host
+    Network.DNS.RBL.IPv4Pattern
+    Network.DNS.RBL.Pretty
+    Network.DNS.RBL.Site
+
+  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:
-    src/
+    harbl-cli/src/
 
   ghc-options:
     -Wall
@@ -55,6 +96,9 @@ test-suite testsuite
   main-is: TestSuite.hs
   build-depends:
     base                        >= 4.6 && < 5,
+    bytestring                  >= 0.9,
+    dns                         >= 2,
+    iproute                     >= 1.4,
     parsec                      >= 3,
     tasty                       >= 0.8,
     tasty-hunit                 >= 0.8