ycextra-0.1: Additional utilities to work with Yhc Core.

Portabilityportable
Stabilityexperimental
Maintainergolubovsky@gmail.com

Yhc.Core.MapNames

Description

Rename all functions and data constructors given a map of names

Synopsis

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.