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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleghc-10.0.0.20260917GHC2024

GHC.Stg.Subst

  • 2 types
  • 8 values
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.