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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

Moduleghc-10.0.0.20260917GHC2024

GHC.Tc.Utils.Instantiate

  • 37 values
valuenewMethodFromName
  1. :: CtOrigin

    why do we need this?

  2. -> Name

    name of the method

  3. -> [TcRhoType]

    types with which to instantiate the class

  4. -> TcM (HsExpr GhcTc)
#

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

valuetyCoVarsOfCt :: Ct -> TcTyCoVarSet
#

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.