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

Commit 177b549

Browse files
authored
Derive Functor for MigrationResult
And Foldable and Traversable
1 parent 41e0ac9 commit 177b549

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Database/PostgreSQL/Simple/Migration.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
-- For usage, see Readme.markdown.
1313

1414
{-# LANGUAGE CPP #-}
15+
{-# LANGUAGE DeriveFoldable #-}
16+
{-# LANGUAGE DeriveFunctor #-}
17+
{-# LANGUAGE DeriveTraversable #-}
1518
{-# LANGUAGE LambdaCase #-}
1619
{-# LANGUAGE OverloadedStrings #-}
1720

@@ -242,7 +245,7 @@ data MigrationResult a
242245
-- ^ There was an error in script migration.
243246
| MigrationSuccess
244247
-- ^ All scripts have been executed successfully.
245-
deriving (Show, Eq, Read, Ord)
248+
deriving (Show, Eq, Read, Ord, Functor, Foldable, Traversable)
246249

247250
-- | The 'MigrationContext' provides an execution context for migrations.
248251
data MigrationContext = MigrationContext

0 commit comments

Comments
 (0)