Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A type class ModSubst
for objects which can have ModuleSubst
applied to them.
See also https://github.com/ezyang/ghc-proposals/blob/backpack/proposals/0000-backpack.rst
Documentation
class ModSubst a where Source #
Applying module substitutions to semantic objects.
Instances
ModSubst ModuleShape Source # | |
Defined in Distribution.Backpack.ModuleShape modSubst :: OpenModuleSubst -> ModuleShape -> ModuleShape Source # | |
ModSubst OpenModule Source # | |
Defined in Distribution.Backpack.ModSubst | |
ModSubst OpenUnitId Source # | |
Defined in Distribution.Backpack.ModSubst | |
ModSubst (Set ModuleName) Source # | |
ModSubst a => ModSubst [a] Source # | |
Defined in Distribution.Backpack.ModSubst | |
ModSubst a => ModSubst (Map k a) Source # | |
ModSubst a => ModSubst (k, a) Source # | |
Defined in Distribution.Backpack.ModSubst |