Safe Haskell | None |
---|---|
Language | Haskell2010 |
GHC.Tc.Errors.Ppr
Contents
Synopsis
- pprTypeDoesNotHaveFixedRuntimeRep :: Type -> FixedRuntimeRepProvenance -> SDoc
- pprScopeError :: RdrName -> NotInScopeError -> SDoc
- tidySkolemInfo :: TidyEnv -> SkolemInfo -> SkolemInfo
- tidySkolemInfoAnon :: TidyEnv -> SkolemInfoAnon -> SkolemInfoAnon
- pprHsDocContext :: HsDocContext -> SDoc
- inHsDocContext :: HsDocContext -> SDoc
- data TcRnMessageOpts = TcRnMessageOpts {}
- pprTyThingUsedWrong :: WrongThingSort -> TcTyThing -> Name -> SDoc
- pprUntouchableVariable :: TcTyVar -> Implication -> SDoc
- messageWithInfoDiagnosticMessage :: UnitState -> ErrInfo -> Bool -> DecoratedSDoc -> DecoratedSDoc
- messageWithHsDocContext :: TcRnMessageOpts -> HsDocContext -> DecoratedSDoc -> DecoratedSDoc
Documentation
pprScopeError :: RdrName -> NotInScopeError -> SDoc Source #
tidySkolemInfo :: TidyEnv -> SkolemInfo -> SkolemInfo Source #
pprHsDocContext :: HsDocContext -> SDoc Source #
inHsDocContext :: HsDocContext -> SDoc Source #
data TcRnMessageOpts Source #
Constructors
TcRnMessageOpts | |
Fields
|
Instances
HasDefaultDiagnosticOpts TcRnMessageOpts Source # | |
Defined in GHC.Tc.Errors.Ppr Methods |
pprTyThingUsedWrong :: WrongThingSort -> TcTyThing -> Name -> SDoc Source #
pprUntouchableVariable :: TcTyVar -> Implication -> SDoc Source #
Useful when overriding message printing.
messageWithInfoDiagnosticMessage :: UnitState -> ErrInfo -> Bool -> DecoratedSDoc -> DecoratedSDoc Source #
messageWithHsDocContext :: TcRnMessageOpts -> HsDocContext -> DecoratedSDoc -> DecoratedSDoc Source #
Orphan instances
Diagnostic TcRnMessage Source # | |||||
Associated Types
Methods diagnosticMessage :: DiagnosticOpts TcRnMessage -> TcRnMessage -> DecoratedSDoc Source # diagnosticReason :: TcRnMessage -> DiagnosticReason Source # diagnosticHints :: TcRnMessage -> [GhcHint] Source # diagnosticCode :: TcRnMessage -> Maybe DiagnosticCode Source # | |||||
HasDefaultDiagnosticOpts TcRnMessageOpts Source # | |||||
Methods | |||||
Outputable ImportError Source # | |||||
Methods ppr :: ImportError -> SDoc Source # | |||||
Outputable SolverReportErrCtxt Source # | |||||
Methods ppr :: SolverReportErrCtxt -> SDoc Source # |