essence-of-live-coding-0.1.0.0: General purpose live coding framework

Safe HaskellSafe
LanguageHaskell2010

LiveCoding.Migrate.Migration

Synopsis

Documentation

data Migration Source #

Constructors

Migration 

Fields

Instances
Semigroup Migration Source #

If both migrations would succeed, the result from the first is used.

Instance details

Defined in LiveCoding.Migrate.Migration

Monoid Migration Source # 
Instance details

Defined in LiveCoding.Migrate.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)