HORIZON HASKELLDocslts/ghc-10.0.x04404a62026-10-19Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 04404a6 · 2026-10-19

Moduleghc-10.0.0.20260917GHC2024

GHC.Stg.Subst

Synopsis
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.

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.