]> gitweb.michael.orlitzky.com - mailbox-count.git/blobdiff - mailbox-count.cabal
Handle SQL errors gracefully.
[mailbox-count.git] / mailbox-count.cabal
index 3dfe80d10adacbae95eeeda9de00cb8c16b72832..982cbb9c5388ed3f03c07d03e116582c835d1ea7 100644 (file)
@@ -1,5 +1,5 @@
 name:           mailbox-count
-version:        0.1.0
+version:        0.0.1
 cabal-version:  >= 1.8
 author:         Michael Orlitzky
 maintainer:    Michael Orlitzky <michael@orlitzky.com>
@@ -10,7 +10,9 @@ bug-reports:    mailto:michael@orlitzky.com
 category:       Mail, Utils
 build-type:     Simple
 extra-source-files:
+  doc/mailbox-countrc.example
   doc/man1/mailbox-count.1
+  test/fixtures/postfixadmin.sqlite3
 synopsis:
   Count mailboxes in a SQL database.
 description:
@@ -18,16 +20,29 @@ description:
 
 executable mailbox-count
   build-depends:
-    base                        == 4.*,
-    cmdargs                     == 0.10.*
-
+    base                        >= 4.6 && < 5,
+    cmdargs                     >= 0.10,
+    configurator                >= 0.2,
+    containers                  >= 0.5,
+    directory                   >= 1.2,
+    filepath                    >= 1.3,
+    HDBC                        >= 2.4,
+    HDBC-postgresql             >= 2.3,
+    HDBC-sqlite3                >= 2.3,
+    MissingH                    >= 1.2,
+    tasty                       >= 0.8,
+    tasty-hunit                 >= 0.8
   main-is:
     Main.hs
 
   hs-source-dirs:
     src/
 
-  --other-modules:
+  other-modules:
+    Configuration
+    CommandLine
+    OptionalConfiguration
+    Report
 
   ghc-options:
     -Wall
@@ -46,15 +61,48 @@ executable mailbox-count
     -optc-march=native
 
 
+test-suite testsuite
+  type: exitcode-stdio-1.0
+  hs-source-dirs: src test
+  main-is: TestSuite.hs
+  build-depends:
+    base                        >= 4.6 && < 5,
+    cmdargs                     >= 0.10,
+    configurator                >= 0.2,
+    containers                  >= 0.5,
+    directory                   >= 1.2,
+    filepath                    >= 1.3,
+    HDBC                        >= 2.4,
+    HDBC-postgresql             >= 2.3,
+    HDBC-sqlite3                >= 2.3,
+    MissingH                    >= 1.2,
+    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.*,
+    base      >= 4.6 && < 5,
     -- Additional test dependencies.
-    doctest   == 0.9.*,
-    filemanip == 0.3.6.*
+    doctest   >= 0.9,
+    filemanip >= 0.3.6
 
   -- It's not entirely clear to me why I have to reproduce all of this.
   ghc-options: