Portability | portable |
---|---|
Stability | experimental |
Maintainer | golubovsky@gmail.com |
Rename all functions and data constructors given a map of names
- mapFunNames :: Map CoreFuncName CoreFuncName -> Core -> Core
- mapDataNames :: Map CoreDataName CoreDataName -> Core -> Core
- mapConNames :: Map CoreCtorName CoreCtorName -> Core -> Core
Documentation
mapFunNames :: Map CoreFuncName CoreFuncName -> Core -> CoreSource
Rename all functions in the Core given the map of old to new names.
mapDataNames :: Map CoreDataName CoreDataName -> Core -> CoreSource
Rename all data objects (LHS of data XXX) given the map of old to new names.
mapConNames :: Map CoreCtorName CoreCtorName -> Core -> CoreSource
Rename all data constructors in the Core given the map of old to new names.