Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit 9371416

Browse files
authored
Merge pull request #25 from tvh/ghc84-fix
Some fixes for GHC 8.4
2 parents 0a1a1bb + 57291c2 commit 9371416

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

postgresql-simple-migration.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ test-suite tests
7070
build-depends: base >= 4.6 && < 5.0,
7171
bytestring >= 0.10 && < 0.11,
7272
postgresql-simple >= 0.4 && < 0.6,
73-
hspec >= 2.2 && < 2.5,
73+
hspec >= 2.2 && < 2.6,
7474
postgresql-simple-migration

src/Database/PostgreSQL/Simple/Migration.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ data MigrationCommand
255255
-- ^ Performs a series of 'MigrationCommand's in sequence.
256256
deriving (Show, Eq, Read, Ord)
257257

258+
#if __GLASGOW_HASKELL__ >= 804
259+
instance Semigroup MigrationCommand where
260+
(<>) = mappend
261+
#endif
262+
258263
instance Monoid MigrationCommand where
259264
mempty = MigrationCommands []
260265
mappend (MigrationCommands xs) (MigrationCommands ys) = MigrationCommands (xs ++ ys)

0 commit comments

Comments
 (0)