Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
A very simple representation of collections of warnings.
Warnings have a position (so they can be ordered), and their
Pretty
-instance produces a human-readable string.
Synopsis
- data Warnings
- anyWarnings :: Warnings -> Bool
- singleWarning :: Loc -> Doc () -> Warnings
- singleWarning' :: Loc -> [Loc] -> Doc () -> Warnings
- listWarnings :: Warnings -> [(Loc, Doc ())]
- prettyWarnings :: Warnings -> Doc AnsiStyle
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.
singleWarning' :: Loc -> [Loc] -> Doc () -> Warnings Source #
A single warning at the given location, but also with a stack trace (sort of) to the location.