Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Da d where
- parsea :: (Da d, CharParsing p) => p d
Documentation
parsea :: (Da d, CharParsing p) => p d Source #
>>>
parse (parsea <* eof) "test" "a" :: Either ParseError HexDigit
Right HexDigita
>>>
parse parsea "test" "axyz" :: Either ParseError HexDigit
Right HexDigita
>>>
isn't _Right (parse parsea "test" "xyz" :: Either ParseError HexDigit)
True