|
12 | 12 | -- For usage, see Readme.markdown.
|
13 | 13 |
|
14 | 14 | {-# LANGUAGE CPP #-}
|
| 15 | +{-# LANGUAGE DeriveFoldable #-} |
| 16 | +{-# LANGUAGE DeriveFunctor #-} |
| 17 | +{-# LANGUAGE DeriveTraversable #-} |
15 | 18 | {-# LANGUAGE LambdaCase #-}
|
16 | 19 | {-# LANGUAGE OverloadedStrings #-}
|
17 | 20 |
|
@@ -41,6 +44,8 @@ import Control.Monad (void, when)
|
41 | 44 | import qualified Crypto.Hash.MD5 as MD5 (hash)
|
42 | 45 | import qualified Data.ByteString as BS (ByteString, readFile)
|
43 | 46 | import qualified Data.ByteString.Base64 as B64 (encode)
|
| 47 | +import Data.Foldable (Foldable) |
| 48 | +import Data.Traversable (Traversable) |
44 | 49 | import Data.List (isPrefixOf, sort)
|
45 | 50 | #if __GLASGOW_HASKELL__ < 710
|
46 | 51 | import Data.Monoid (mconcat)
|
@@ -242,7 +247,7 @@ data MigrationResult a
|
242 | 247 | -- ^ There was an error in script migration.
|
243 | 248 | | MigrationSuccess
|
244 | 249 | -- ^ All scripts have been executed successfully.
|
245 |
| - deriving (Show, Eq, Read, Ord) |
| 250 | + deriving (Show, Eq, Read, Ord, Functor, Foldable, Traversable) |
246 | 251 |
|
247 | 252 | -- | The 'MigrationContext' provides an execution context for migrations.
|
248 | 253 | data MigrationContext = MigrationContext
|
|
0 commit comments