This fixes the build with >=ghc-8.4, where monoids must also be
semigroups. The "semigroups" package was added as a build dependency
to (hopefully) keep things working with older versions of GHC.
HDBC-postgresql >= 2.3,
HDBC-sqlite3 >= 2.3,
MissingH >= 1.2,
+ semigroups >= 0.18,
tasty >= 0.8,
tasty-hunit >= 0.8
main-is:
HDBC-postgresql >= 2.3,
HDBC-sqlite3 >= 2.3,
MissingH >= 1.2,
+ semigroups >= 0.18,
tasty >= 0.8,
tasty-hunit >= 0.8
import Data.Data ( Data )
import Data.Typeable ( Typeable )
import Data.Monoid ( Monoid(..) )
+import Data.Semigroup ( Semigroup( (<>) ) )
import Paths_mailbox_count ( getSysconfDir )
import System.Directory ( getHomeDirectory )
import System.FilePath ( (</>) )
Nothing
Nothing
+instance Semigroup OptionalConfiguration where
-- | Combine @cfg1@ and @cfg2@, giving precedence to @cfg2@.
- cfg1 `mappend` cfg2 =
+ cfg1 <> cfg2 =
OptionalConfiguration
(merge_maybes (database cfg1) (database cfg2))
(merge_maybes (detail cfg1) (detail cfg2))