Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Warnings for a module
Synopsis
- data Warnings
- = NoWarnings
- | WarnAll WarningTxt
- | WarnSome [(OccName, WarningTxt)]
- data WarningTxt
- pprWarningTxtForMsg :: WarningTxt -> SDoc
- mkIfaceWarnCache :: Warnings -> OccName -> Maybe WarningTxt
- emptyIfaceWarnCache :: OccName -> Maybe WarningTxt
- plusWarns :: Warnings -> Warnings -> Warnings
Documentation
Warning information for a module
NoWarnings | Nothing deprecated |
WarnAll WarningTxt | Whole module deprecated |
WarnSome [(OccName, WarningTxt)] | Some specific things deprecated |
data WarningTxt Source #
Warning Text
reason/explanation from a WARNING or DEPRECATED pragma
WarningTxt (Located SourceText) [Located StringLiteral] | |
DeprecatedTxt (Located SourceText) [Located StringLiteral] |
Instances
pprWarningTxtForMsg :: WarningTxt -> SDoc Source #
mkIfaceWarnCache :: Warnings -> OccName -> Maybe WarningTxt Source #
Constructs the cache for the mi_warn_fn
field of a ModIface