Moduleghc-10.0.0.20260917GHC2024
GHC.Tc.Utils.Instantiate
- 37 values
- Packageghc-10.0.0.20260917
- Exports37
- LanguageGHC2024
- LicenceBSD-3-Clause
- SourceTcMType.hs
Given a list of [TyVar], skolemize the type variables,
returning a substitution mapping the original tyvars to the
skolems, and the list of newly bound skolems.
Give fresh uniques to a bunch of TyVars, but they stay
as TyVars, rather than becoming TcTyVars
Used in GHC.Tc.Instance.Family.newFamInst, and newClsInst
Give fresh uniques to a bunch of CoVars Used in "GHC.Tc.Instance.Family.newFamInst"
Given ty::forall k1 k2. k, instantiate all the invisible forall-binders
returning ty kk1 kk2 :: k[kk1k1, kk2k1]
Called only to instantiate kinds, in user-written type signatures
newMethodFromName Used when Name is the wired-in name for a wired-in class method, so the caller knows its type for sure, which should be of form
forall a. C a => <blah>newMethodFromName is supposed to instantiate just the outer type variable and constraint
Returns free variables of WantedConstraints as a non-deterministic set. See Note [Deterministic FV] in GHC.Types.Var.FV.
Returns free variables of constraints as a non-deterministic set This must consult only the ctPred, so that it gets *tidied* fvs if the constraint has been tidied. Tidying a constraint does not tidy the fields of the Ct, only the predicate in the CtEvidence.
Returns free variables of a bag of constraints as a non-deterministic
set. See Note [Deterministic FV] in GHC.Utils.FV.