Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A very simple representation of collections of warnings.
Warnings have a position (so they can be ordered), and their
Show
-instance produces a human-readable string.
Synopsis
- data Warnings
- anyWarnings :: Warnings -> Bool
- singleWarning :: SrcLoc -> Doc -> Warnings
- singleWarning' :: SrcLoc -> [SrcLoc] -> Doc -> Warnings
- listWarnings :: Warnings -> [(SrcLoc, Doc)]
Documentation
The warnings produced by the compiler. The Show
instance
produces a human-readable description.
anyWarnings :: Warnings -> Bool Source #
True if there are any warnings in the set.