HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Moduleghc-lib-parser-9.14.1.20251220GHC2021

GHC.Driver.Flags

  • 9 types
  • 30 values
datadata DumpFlag
#

Debugging flags

Constructors

Instances3Enum, Eq, Show
  • Enum DumpFlagDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Eq DumpFlagDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Show DumpFlagDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
datadata GeneralFlag
#

Enumerates the simple on-or-off dynamic flags

Constructors

Instances3Enum, Eq, Show
  • Enum GeneralFlagDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Eq GeneralFlagDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Show GeneralFlagDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
datadata Language
#
Instances7Bounded, Enum, Eq, Show, NFData, Outputable, …
  • Bounded LanguageDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Enum LanguageDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Eq LanguageDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Show LanguageDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • NFData LanguageDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Outputable LanguageDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Binary LanguageDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags

The default Language is used if one is not specified explicitly, by both GHC and GHCi.

The set of flags which affect optimisation for the purposes of recompilation avoidance. Specifically, these include flags which affect code generation but not the semantics of the program.

See Note [Ignoring some flag changes] in GHC.Iface.Recomp.Flags)

The set of flags which affect code generation and can change a program's runtime behavior (other than performance). These include flags which affect:

  • user visible debugging information (e.g. info table provenance)

  • the ability to catch runtime errors (e.g. -fignore-asserts)

  • the runtime result of the program (e.g. -fomit-yields)

  • which code or interface file declarations are emitted

We also considered placing flags which affect asympototic space behavior (e.g. -ffull-laziness) however this would mean that changing optimisation levels would trigger recompilation even with -fignore-optim-changes, regressing #13604.

Also, arguably Opt_IgnoreAsserts should be here as well; however, we place it instead in optimisationFlags since it is implied by -O[12] and therefore would also break #13604.

See #23369.

Warnings

31 declarations
datadata WarningFlag
#

Constructors

Instances5Bounded, Enum, Eq, Ord, Show
  • Bounded WarningFlagDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Enum WarningFlagDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Eq WarningFlagDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Ord WarningFlagDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Show WarningFlagDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags

Return the names of a WarningFlag

One flag may have several names because of US/UK spelling. The first one is the "preferred one" that will be displayed in warning messages.

Warning group hierarchies, where there is an explicit inclusion relation.

Each inner list is a hierarchy of warning groups, ordered from smallest to largest, where each group is a superset of the one before it.

Separating this from warningGroups allows for multiple hierarchies with no inherent relation to be defined.

The special-case W_everything group is not included.

Things you get with -Wcompat.

This is intended to group together warnings that will be enabled by default at some point in the future, so that library authors eager to make their code future compatible to fix issues before they even generate warnings.

datadata OnOff a
#

Constructors

Instances3Eq, Show, Outputable
  • Eq a => Eq (OnOff a)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Show a => Show (OnOff a)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags
  • Outputable a => Outputable (OnOff a)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Driver.Flags