HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

  • 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, …