Just kidding, when the semigroups package promises "a backwards-
compatible API," what they mean is that they deleted the entire source
tree in the minor release 0.18.2 and nothing works at all. So instead,
we need to do a version check on GHC within the cabal file, and
conditionally depend on a version of semigroups before 0.18.2.
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
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