Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module containing small types
Synopsis
- data PError = PError Position String
- showPError :: FilePath -> PError -> String
- data PWarning = PWarning !PWarnType !Position String
- data PWarnType
- showPWarning :: FilePath -> PWarning -> String
- type FieldParser = Parsec String [PWarning]
- data Position = Position !Int !Int
- incPos :: Int -> Position -> Position
- retPos :: Position -> Position
- showPos :: Position -> String
- zeroPos :: Position
Diagnostics
Parser error.
Parser warning.
Type of parser warning. We do classify warnings.
Different application may decide not to show some, or have fatal behaviour on others
PWTOther | Unclassified warning |
PWTUTF | Invalid UTF encoding |
PWTBoolCase |
|
PWTVersionTag | there are version with tags |
PWTNewSyntax | New syntax used, but no |
PWTOldSyntax | Old syntax used, and |
PWTDeprecatedField | |
PWTInvalidSubsection | |
PWTUnknownField | |
PWTUnknownSection | |
PWTTrailingFields | |
PWTExtraMainIs | extra main-is field |
PWTExtraTestModule | extra test-module field |
PWTExtraBenchmarkModule | extra benchmark-module field |
PWTLexNBSP | |
PWTLexBOM | |
PWTQuirkyCabalFile | legacy cabal file that we know how to patch |
Instances
Bounded PWarnType # | |
Enum PWarnType # | |
succ :: PWarnType -> PWarnType Source # pred :: PWarnType -> PWarnType Source # toEnum :: Int -> PWarnType Source # fromEnum :: PWarnType -> Int Source # enumFrom :: PWarnType -> [PWarnType] Source # enumFromThen :: PWarnType -> PWarnType -> [PWarnType] Source # enumFromTo :: PWarnType -> PWarnType -> [PWarnType] Source # enumFromThenTo :: PWarnType -> PWarnType -> PWarnType -> [PWarnType] Source # | |
Eq PWarnType # | |
Ord PWarnType # | |
Show PWarnType # | |