ghc-8.11.0.20200524: The GHC API
Safe HaskellNone
LanguageHaskell2010

GHC.Tc.Instance.Class

Synopsis

Documentation

data InstanceWhat Source #

Instances

Instances details
Outputable InstanceWhat Source # 
Instance details

Defined in GHC.Tc.Instance.Class

data AssocInstInfo Source #

Extra information about the parent instance declaration, needed when type-checking associated types. The Class is the enclosing class, the [TyVar] are the scoped type variable of the instance decl. The VarEnv Type maps class variables to their instance types.

Constructors

NotAssociated 
InClsInst 

Fields

  • ai_class :: Class
     
  • ai_tyvars :: [TyVar]

    The scoped tyvars of the instance Why scoped? See bind_me in GHC.Tc.Validity.checkConsistentFamInst

  • ai_inst_env :: VarEnv Type

    Maps class tyvars to their instance types See Note [Matching in the consistent-instantiation check]