Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Data types and type synonyms for parsers and their defun symbols.
Synopsis
- type ParserCh s r = Char -> s -> Result s r
- data Result s r
- type ParserEnd s r = s -> Either E r
- data E
- type Parser s r = (ParserChSym s r, ParserEndSym s r, s)
- type ParserChSym s r = Char ~> (s ~> Result s r)
- type ParserEndSym s r = s ~> Either E r
Parsers
The result of a single step of a parser.
Parser error.
EBase | Base parser error. |
| |
EIn | Inner parser error inside combinator. |
Defun symbols
type Parser s r = (ParserChSym s r, ParserEndSym s r, s) Source #