ghc-lib-parser-9.12.2.20250421: The GHC API, decoupled from GHC versions

Safe Haskell | Ignore
Language | GHC2021

GHC.Parser.Errors.Ppr

Contents

- Orphan instances

# Documentation

psHeaderMessageDiagnostic :: PsHeaderMessage -> DecoratedSDoc Source #

psHeaderMessageReason :: PsHeaderMessage -> DiagnosticReason Source #

psHeaderMessageHints :: PsHeaderMessage -> [GhcHint] Source #

suggestParensAndBlockArgs :: [GhcHint] Source #

pp_unexpected_fun_app :: Outputable a => SDoc -> a -> SDoc Source #

parse_error_in_pat :: SDoc Source #

forallSym :: Bool -> SDoc Source #

pprFileHeaderPragmaType :: FileHeaderPragmaType -> SDoc Source #

# Orphan instances

Diagnostic PsMessage Source # |

Instance details

Associated Types

type DiagnosticOpts PsMessage |
Instance details Defined in GHC.Parser.Errors.Ppr type DiagnosticOpts PsMessage = NoDiagnosticOpts

Methods

diagnosticMessage :: DiagnosticOpts PsMessage -> PsMessage -> DecoratedSDoc Source #

diagnosticReason :: PsMessage -> DiagnosticReason Source #

diagnosticHints :: PsMessage -> [GhcHint] Source #

diagnosticCode :: PsMessage -> Maybe DiagnosticCode Source #