HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

  • PackageAgda-2.8.0.2
  • Exports21
  • LanguageHaskell2010
  • LicenceMIT
  • SourceWarnings.hs
datadata WarningMode

A WarningMode has two components: a set of warnings to be displayed and a flag stating whether warnings should be turned into fatal errors.

Instances6Eq, Show, Generic, NFData, EmbPrj, Rep

The defaultWarningMode is a curated set of warnings covering non-fatal errors and disabling style-related ones

Some warnings are errors and cannot be turned off.

Constructors

Instances5Show, Generic, NFData, EmbPrj, Rep
valuewarningModeUpdate :: String -> Either WarningModeError WarningModeUpdate

warningModeUpdate str computes the action of str over the current WarningMode: it may reset the set of warnings, add or remove a specific flag or demand that any warning be turned into an error

datadata WarningName

The WarningName data enumeration is meant to have a one-to-one correspondance to existing warnings in the codebase.

Constructors

Instances10Bounded, Enum, Eq, Ord, Read, Show, …