The "context" of an error message, e.g. "In the expression ...", "In the pattern ...", or "In the equations for closed type family ...".
Constructors
ExprCtxt !(HsExpr GhcRn)In an expression.
ThetaCtxt !UserTypeCtxt !ThetaTypeIn a user-written context.
QuantifiedCtCtxt !PredTypeIn a quantified constraint.
InferredTypeCtxt !Name !TcTypeWhen checking an inferred type.
SigCtxt !(Sig GhcRn)In an inline pragma, or a fixity signature, or a type signature, or... (see Sig).
UserSigCtxt !UserTypeCtxt !UserSigTypeIn a user-written type signature.
RecordUpdCtxt !(NonEmpty ConLike) ![Name] ![TyCoVar]In a record update.
ClassOpCtxt !Id !TypeIn a class method.
MethSigCtxt !Name !TcType !TcTypeIn the instance type signature of a class method.
PatSigErrCtxt !TcType !ExpTypeIn a pattern type signature.
PatCtxt !(Pat GhcRn)In a pattern.
PatSynDeclCtxt !NameIn a pattern synonym declaration.
MatchCtxt !HsMatchContextRnIn a pattern matching context, e.g. a equation for a function binding, or a case alternative, ...
forall body. Outputable body => MatchInCtxt !(Match GhcRn body)In a match in a pattern matching context, either for an expression or for an arrow command.
FunAppCtxt !FunAppCtxtFunArg !IntIn a function application.
FunTysCtxt !ExpectedFunTyCtxt !Type !Int !IntIn a function call.
FunResCtxt !(HsExpr GhcTc) !Int !TcType !ExpTypeIn the result of a function call.
TyConDeclCtxt !Name !(TyConFlavour TyCon)In the declaration of a type constructor.
TyConInstCtxt !Name !TyConInstFlavourIn a type or data family instance (or default instance).
DataConDefCtxt !(NonEmpty (LocatedN Name))In the declaration of a data constructor.
DataConResTyCtxt !(NonEmpty (LocatedN Name))In the result type of a data constructor.
ClosedFamEqnCtxt !TyConIn the equations for a closed type family.
TySynErrCtxt !TyConIn the expansion of a type synonym.
RoleAnnotErrCtxt !NameIn a role annotation.
CmdCtxt !(HsCmd GhcRn)In an arrow command.
InstDeclErrCtxt !(Either (LHsType GhcRn) PredType)In an instance declaration.
DefaultDeclErrCtxtIn a default declaration.
StaticFormCtxt !(LHsExpr GhcRn)In the body of a static form.
forall p. OutputableBndrId p => PatMonoBindsCtxt !(LPat (GhcPass p)) !(GRHSs GhcRn (LHsExpr GhcRn))In a pattern binding.
ForeignDeclCtxt !(ForeignDecl GhcRn)In a foreign import/export declaration.
FieldCtxt !FieldLabelStringIn a record field.
TypeCtxt !(LHsType GhcRn)In a type.
KindCtxt !(LHsKind GhcRn)In a kind.
AmbiguityCheckCtxt !UserTypeCtxt !BoolIn an ambiguity check.
TermLevelUseCtxt !Name !TermLevelUseCtxtIn a term-level use of a Name.
MainCtxt !NameWhen checking the type of the
mainfunction.VDQWarningCtxt !TcTyConWarning emitted when inferring use of visible dependent quantification.
forall body. (Anno (StmtLR GhcRn GhcRn body) ~ SrcSpanAnnA, Outputable body) => StmtErrCtxt !HsStmtContextRn !(LStmtLR GhcRn GhcRn body)In a statement
StmtErrCtxtPat (LPat GhcRn)In patten of the do statement. (c.f. MonadFailErrors)
SyntaxNameCtxt !(HsExpr GhcRn) !CtOrigin !TcType !SrcSpanIn an rebindable syntax expression.
RuleCtxt !FastStringIn a RULE.
SubTypeCtxt !TcType !TcTypeIn a subtype check.
forall p. OutputableBndrId p => ExportCtxt (IE (GhcPass p))In an export.
PatSynExportCtxt !PatSynIn an export of a pattern synonym.
PatSynRecSelExportCtxt !PatSyn !NameIn an export of a pattern synonym record field.
forall p. OutputableBndrId p => AnnCtxt (AnnDecl (GhcPass p))In an annotation.
SpecPragmaCtxt !(Sig GhcRn)In a specialise pragma.
DerivInstCtxt !PredTypeIn a deriving clause.
StandaloneDerivCtxt !(LHsSigWcType GhcRn)In a standalone deriving clause.
DerivBindCtxt !Id !Class ![Type]When typechecking the body of a derived instance.
UntypedTHBracketCtxt !(HsQuote GhcPs)In an untyped Template Haskell quote.
forall p. OutputableBndrId p => TypedTHBracketCtxt !(LHsExpr (GhcPass p))In a typed Template Haskell quote.
UntypedSpliceCtxt !(HsUntypedSplice GhcPs)In an untyped Template Haskell splice or quasi-quote.
forall p. OutputableBndrId p => TypedSpliceCtxt !(Maybe SplicePointName) !(HsTypedSplice (GhcPass p))In a typed Template Haskell splice.
TypedSpliceResultCtxt !(LHsExpr GhcTc)In the result of a typed Template Haskell splice.
ReifyInstancesCtxt !Name ![Type]In an argument to the Template Haskell
reifyInstancesfunction.MergeSignaturesCtxt !UnitState !ModuleName ![InstantiatedModule]While merging Backpack signatures.
CheckImplementsCtxt !UnitState !Module !InstantiatedModuleWhile checking that a module implements a Backpack signature.