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