ghc-9.6.3: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell2010

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

# Documentation

initDiagOpts :: DynFlags -> DiagOpts Source #

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 Source #

Initialise the configuration for printing specific diagnostic messages

initPsMessageOpts :: DynFlags -> DiagnosticOpts PsMessage Source #

initDsMessageOpts :: DynFlags -> DiagnosticOpts DsMessage Source #

initTcMessageOpts :: DynFlags -> DiagnosticOpts TcRnMessage Source #

initDriverMessageOpts :: DynFlags -> DiagnosticOpts DriverMessage Source #