]> gitweb.michael.orlitzky.com - mailbox-count.git/blobdiff - mailbox-count.cabal
mailbox-count.cabal: depend on semigroups conditionally.
[mailbox-count.git] / mailbox-count.cabal
index 0f14055e24b054b973bed0fd64261a5d08a79609..6b0716ed305aa0198fd220686492d4320bca6044 100644 (file)
@@ -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
 
@@ -210,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