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