Safe Haskell | None |
---|---|
Language | GHC2021 |
Documentation
data PromotionErr Source #
TyConPE | |
ClassPE | |
FamDataConPE | |
ConstrainedDataConPE ThetaType | |
PatSynPE | |
RecDataConPE | |
TermVariablePE | |
TypeVariablePE |
Instances
pprPECategory :: PromotionErr -> SDoc Source #
peCategory :: PromotionErr -> String Source #
data TermLevelUseErr Source #
Instances
Generic TermLevelUseErr Source # | |||||
Defined in GHC.Tc.Errors.Types.PromotionErr
from :: TermLevelUseErr -> Rep TermLevelUseErr x # to :: Rep TermLevelUseErr x -> TermLevelUseErr # | |||||
type Rep TermLevelUseErr Source # | |||||
Defined in GHC.Tc.Errors.Types.PromotionErr type Rep TermLevelUseErr = D1 ('MetaData "TermLevelUseErr" "GHC.Tc.Errors.Types.PromotionErr" "ghc-9.13-inplace" 'False) (C1 ('MetaCons "TyConTE" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ClassTE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TyVarTE" 'PrefixI 'False) (U1 :: Type -> Type))) |
data TermLevelUseCtxt Source #
Instances
Generic TermLevelUseCtxt Source # | |||||
Defined in GHC.Tc.Errors.Types.PromotionErr
from :: TermLevelUseCtxt -> Rep TermLevelUseCtxt x # to :: Rep TermLevelUseCtxt x -> TermLevelUseCtxt # | |||||
type Rep TermLevelUseCtxt Source # | |||||
Defined in GHC.Tc.Errors.Types.PromotionErr type Rep TermLevelUseCtxt = D1 ('MetaData "TermLevelUseCtxt" "GHC.Tc.Errors.Types.PromotionErr" "ghc-9.13-inplace" 'False) (C1 ('MetaCons "TermLevelUseGRE" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GlobalRdrElt)) :+: C1 ('MetaCons "TermLevelUseTyVar" 'PrefixI 'False) (U1 :: Type -> Type)) |
pprTermLevelUseCtxt :: Name -> TermLevelUseCtxt -> SDoc Source #
teCategory :: TermLevelUseErr -> String Source #