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

Safe Haskell | Ignore
Language | GHC2021

GHC.Driver.Config.Diagnostic

Description

Functions for initialising error message printing configuration from the GHC session flags.

Synopsis

- initDiagOpts :: DynFlags -> DiagOpts
- initPrintConfig :: DynFlags -> DiagnosticOpts GhcMessage
- initPsMessageOpts :: DynFlags -> DiagnosticOpts PsMessage
- initDsMessageOpts :: DynFlags -> DiagnosticOpts DsMessage
- initTcMessageOpts :: DynFlags -> DiagnosticOpts TcRnMessage
- initDriverMessageOpts :: DynFlags -> DiagnosticOpts DriverMessage
- initIfaceMessageOpts :: DynFlags -> DiagnosticOpts IfaceMessage

# Documentation

initDiagOpts :: DynFlags -> DiagOpts #

Initialise the general configuration for printing diagnostic messages For example, this configuration controls things like whether warnings are treated like errors.

initPrintConfig :: DynFlags -> DiagnosticOpts GhcMessage #

Initialise the configuration for printing specific diagnostic messages

initPsMessageOpts :: DynFlags -> DiagnosticOpts PsMessage #

initDsMessageOpts :: DynFlags -> DiagnosticOpts DsMessage #

initTcMessageOpts :: DynFlags -> DiagnosticOpts TcRnMessage #

initDriverMessageOpts :: DynFlags -> DiagnosticOpts DriverMessage #

initIfaceMessageOpts :: DynFlags -> DiagnosticOpts IfaceMessage #