Safe Haskell | Safe-Infered |
---|
- newtype GeniWarnings = GeniWarnings {}
- mkGeniWarnings :: [GeniWarning] -> GeniWarnings
- data GeniWarning
- = LexWarning [LexEntry] LexWarning
- | CustomLexWarning Text
- | NoLexSelection [Literal GeniVal]
- | MorphWarning [Text]
- data LexWarning
- posort :: Poset a => [a] -> [a]
- sortWarnings :: GeniWarnings -> GeniWarnings
- appendWarning :: GeniWarning -> [GeniWarning] -> [GeniWarning]
- mergeWarning :: GeniWarning -> GeniWarning -> Maybe GeniWarning
- showGeniWarning :: GeniWarning -> [Text]
- type WordFamilyCount = Map (FullList Text, Text) Int
- toWfCount :: [LexEntry] -> WordFamilyCount
Documentation
newtype GeniWarnings
This exists because we want the Monoid
instance, providing a
GenI-specific notion of appending which merges instances of the
same error
mkGeniWarnings :: [GeniWarning] -> GeniWarnings
data GeniWarning
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
appendWarning :: GeniWarning -> [GeniWarning] -> [GeniWarning]
mergeWarning :: GeniWarning -> GeniWarning -> Maybe GeniWarning
showGeniWarning :: GeniWarning -> [Text]
A warning may be displayed over several lines
toWfCount :: [LexEntry] -> WordFamilyCount