HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleghc-9.10.3GHC2021

GHC.Unit.Module.Warnings

Warnings for a module

  • 8 types
  • 20 values
  • Packageghc-9.10.3
  • Exports28
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceWarnings.hs
newtypenewtype WarningCategory
#
Instances7Eq, Data, Show, NFData, Outputable, Uniquable, …

Is this warning category allowed to appear in user-defined WARNING pragmas? It must either be the known category deprecations, or be a custom category that begins with x- and contains only valid characters (letters, numbers, apostrophes and dashes).

datadata WarningCategorySet
#

A finite or infinite set of warning categories.

Unlike WarningFlag, there are (in principle) infinitely many warning categories, so we cannot necessarily enumerate all of them. However the set is constructed by adding or removing categories one at a time, so we can represent it as either a finite set of categories, or a cofinite set (where we store the complement).

datadata WarningTxt pass
#

Warning Text

reason/explanation from a WARNING or DEPRECATED pragma

Instances6Eq, Data, Generic, Outputable, Rep, Anno