Cabal-2.4.0.0: A framework for packaging Haskell software

Safe HaskellNone
LanguageHaskell2010

Distribution.Backpack.ModSubst

Description

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

Synopsis

Documentation

class ModSubst a where #

Applying module substitutions to semantic objects.

Minimal complete definition

modSubst

Methods

modSubst :: OpenModuleSubst -> a -> a #

Instances
ModSubst OpenModule # 
Instance details

Defined in Distribution.Backpack.ModSubst

ModSubst OpenUnitId # 
Instance details

Defined in Distribution.Backpack.ModSubst

ModSubst ModuleShape # 
Instance details

Defined in Distribution.Backpack.ModuleShape

ModSubst a => ModSubst [a] # 
Instance details

Defined in Distribution.Backpack.ModSubst

Methods

modSubst :: OpenModuleSubst -> [a] -> [a] #

ModSubst (Set ModuleName) # 
Instance details

Defined in Distribution.Backpack.ModSubst

ModSubst a => ModSubst (k, a) # 
Instance details

Defined in Distribution.Backpack.ModSubst

Methods

modSubst :: OpenModuleSubst -> (k, a) -> (k, a) #

ModSubst a => ModSubst (Map k a) # 
Instance details

Defined in Distribution.Backpack.ModSubst

Methods

modSubst :: OpenModuleSubst -> Map k a -> Map k a #