ghc-9.14.1.20260916: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.Unit.External.Substitution

Synopsis

Substitution and module renaming

type ShHoleSubst = ModuleNameEnv Module Source #

Substitution on module variables, mapping module names to module identifiers.

renameHoleModule' :: UnitInfoMap -> ShHoleSubst -> Module -> Module Source #

Like renameHoleModule, but requires only UnitInfoMap so it can be used by GHC.Unit.State.

renameHoleUnit' :: UnitInfoMap -> ShHoleSubst -> Unit -> Unit Source #

Like renameHoleUnit, but requires only UnitInfoMap so it can be used by GHC.Unit.State.

renameUnitInfo :: UnitInfoMap -> [(ModuleName, Module)] -> UnitInfo -> UnitInfo Source #

Rename a UnitInfo according to some module instantiation.