Safe Haskell  Safe 

Language  Haskell2010 
Synopsis
 data Migration = Migration {
 runMigration :: forall a b. (Data a, Data b) => a > b > Maybe a
 runSafeMigration :: (Data a, Data b) => Migration > a > b > a
 castMigration :: Migration
 newtypeMigration :: Migration
 userMigration :: (Typeable c, Typeable d) => (c > d) > Migration
 migrationTo2 :: Typeable t => (forall a b c. (Typeable a, Typeable b, Typeable c) => t b c > a > Maybe (t b c)) > Migration
 constMigrationFrom2 :: Typeable t => (forall a b c. (Typeable a, Typeable b, Typeable c) => t b c > Maybe a) > Migration
Documentation
Migration  

runSafeMigration :: (Data a, Data b) => Migration > a > b > a Source #
Run a migration and insert the new initial state in case of failure.
userMigration :: (Typeable c, Typeable d) => (c > d) > Migration Source #
If you have a specific type that you would like to be migrated to a specific other type,
you can create a migration for this.
For example: userMigration (toInteger :: Int > Integer)