HORIZON HASKELLDocslts/ghc-10.0.x04404a62026-10-19Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 04404a6 · 2026-10-19

datadata PsHeaderMessage
#

Constructors

Instances2Generic, Rep
datadata PsMessage
#

Constructors

Instances5Generic, Diagnostic, Rep, DiagnosticOpts, DiagnosticHint
datadata LexErr
#

Constructors

Instances3Eq, Ord, Show
  • Eq LexErrDefined in ghc-10.0.0.20260917 · GHC.Parser.Errors.Types
  • Ord LexErrDefined in ghc-10.0.0.20260917 · GHC.Parser.Errors.Types
  • Show LexErrDefined in ghc-10.0.0.20260917 · GHC.Parser.Errors.Types

Whether or not to add a hint about enabling -XModifiers, when we throw an error about modifier syntax.

We suggest enabling it when modifier syntax is used in a place it's recognized, but the extension is disabled. We don't suggest enabling it when modifier syntax is used in a place it's not recognized.

See Note [Overview of Modifiers] in Language.Haskell.Syntax.Type.