]> gitweb.michael.orlitzky.com - mailbox-count.git/blobdiff - mailbox-count.cabal
src/OptionalConfiguration.hs: use an explicit mappend.
[mailbox-count.git] / mailbox-count.cabal
index 0b7fa2939c12d44a816e660a433431cf01b551a3..4852d92fa590e9e234b63faa98e6852604e8ca6b 100644 (file)
@@ -1,5 +1,5 @@
 name:           mailbox-count
-version:        0.0.3
+version:        0.0.4
 cabal-version:  >= 1.8
 author:         Michael Orlitzky
 maintainer:    Michael Orlitzky <michael@orlitzky.com>
@@ -153,7 +153,7 @@ description:
 
 executable mailbox-count
   build-depends:
-    base                        >= 4.6 && < 5,
+    base                        >= 4.8 && < 5,
     cmdargs                     >= 0.10,
     configurator                >= 0.2,
     containers                  >= 0.5,
@@ -163,9 +163,13 @@ executable mailbox-count
     HDBC-postgresql             >= 2.3,
     HDBC-sqlite3                >= 2.3,
     MissingH                    >= 1.2,
-    semigroups                  >= 0.18,
     tasty                       >= 0.8,
     tasty-hunit                 >= 0.8
+  -- Data.Semigroup was added to GHC.Base in ghc-8.0
+  if impl(ghc < 8.0)
+     -- The minor version 0.18.2 deleted the entire API?
+     build-depends: semigroups < 0.18.2
+
   main-is:
     Main.hs
 
@@ -188,8 +192,19 @@ test-suite testsuite
   type: exitcode-stdio-1.0
   hs-source-dirs: src test
   main-is: TestSuite.hs
+
+  other-modules:
+    Configuration
+    OptionalConfiguration
+    -- WARNING: the Paths_mailbox_count module is automatically generated by
+    -- Cabal itself. We don't want it included in the release tarballs,
+    -- since we typically want the paths that the user has configured.
+    -- Nevertheless, Cabal will complain if we don't include it here.
+    Paths_mailbox_count
+    Report
+
   build-depends:
-    base                        >= 4.6 && < 5,
+    base                        >= 4.8 && < 5,
     cmdargs                     >= 0.10,
     configurator                >= 0.2,
     containers                  >= 0.5,
@@ -199,10 +214,12 @@ test-suite testsuite
     HDBC-postgresql             >= 2.3,
     HDBC-sqlite3                >= 2.3,
     MissingH                    >= 1.2,
-    semigroups                  >= 0.18,
     tasty                       >= 0.8,
     tasty-hunit                 >= 0.8
-
+  -- Data.Semigroup was added to GHC.Base in ghc-8.0
+  if impl(ghc < 8.0)
+     -- The minor version 0.18.2 deleted the entire API?
+     build-depends: semigroups < 0.18.2
 
 
 test-suite doctests
@@ -210,7 +227,7 @@ test-suite doctests
   hs-source-dirs: test
   main-is: Doctests.hs
   build-depends:
-    base      >= 4.6 && < 5,
+    base      >= 4.8 && < 5,
     -- Additional test dependencies.
     doctest   >= 0.9,
     filemanip >= 0.3.6