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

Safe HaskellNone
LanguageHaskell2010

LiveCoding.Migrate

Synopsis

Documentation

migrate :: (Data a, Data b) => a -> b -> a Source #

The standard migration solution, recursing into the data structure and applying standardMigration.

migrateWith :: (Data a, Data b) => Migration -> a -> b -> a Source #

Still recurse into the data structure, but apply your own given migration. Often you will want to call migrateWith (standardMigration <> yourMigration).

standardMigration :: Migration Source #

Covers standard cases such as matching types, to and from debuggers, to newtypes.

treeMigrateWith :: (Data a, Data b) => Migration -> a -> b -> Maybe a Source #

The standard migration working horse. Tries to apply the given migration, and if this fails, tries to recurse into the data structure.

setChildren :: Data a => [GenericT'] -> a -> a Source #