ghc-10.0.0.20260917: The GHC API
Safe HaskellNone
LanguageGHC2024

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.