HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Moduleghc-9.14.1GHC2021

GHC.Stg.Subst

  • 2 types
  • 8 values
  • Packageghc-9.14.1
  • Exports10
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceSubst.hs
datadata Subst
#

A renaming substitution from Ids to Ids. Like RnEnv2, but not maintaining pairs of substitutions. Like GHC.Core.Subst.Subst, but with the domain being Ids instead of entire CoreExpr.

valuesubstBndr :: Id -> Subst -> (Id, Subst)
#

Substitutes an Id for another one according to the Subst given in a way that avoids shadowing the InScopeSet, returning the result and an updated Subst that should be used by subsequent substitutions.

valueextendSubst :: Id -> Id -> Subst -> Subst
#

Add a substitution for an Id to the Subst: you must ensure that the in-scope set is such that TyCoSubst Note [The substitution invariant] holds after extending the substitution like this.