Safe Haskell | None |
---|
Typed warnings as an easier alternative to strings.
This makes it easier to recognise repeated warnings and print them out in a reasonable way
- data GeniWarnings
- fromGeniWarnings :: GeniWarnings -> [GeniWarning]
- mkGeniWarnings :: [GeniWarning] -> GeniWarnings
- sortWarnings :: GeniWarnings -> GeniWarnings
- data GeniWarning
- = LexWarning [LexEntry] LexWarning
- | CustomLexWarning Text
- | NoLexSelection [Literal GeniVal]
- | MorphWarning [Text]
- data LexWarning
- showGeniWarning :: GeniWarning -> [Text]
Collection of warnings
data GeniWarnings Source
This exists because we want the Monoid
instance, providing a
GenI-specific notion of appending which merges instances of the
same error
Individual warnings
data GeniWarning Source
LexWarning [LexEntry] LexWarning | A warning that should be repeated for each lexical entry affected |
CustomLexWarning Text | A single custom warning |
NoLexSelection [Literal GeniVal] | Literals which did not receive any lexical selection |
MorphWarning [Text] | Warnings from the morphological realiser |
data LexWarning Source
showGeniWarning :: GeniWarning -> [Text]Source
A warning may be displayed over several lines