Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class De d where
- parsee :: (De d, CharParsing p) => p d
Documentation
parsee :: (De d, CharParsing p) => p d Source #
>>>
parse (parsee <* eof) "test" "e" :: Either ParseError Digit
Right e
>>>
parse parsee "test" "exyz" :: Either ParseError Digit
Right e
>>>
isn't _Right (parse parsee "test" "xyz" :: Either ParseError Digit)
True
\c -> c /= 'e' ==> isn't _Right (parse parsee "test" [c] :: Either ParseError Digit)