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 (Digitb ())
Right (Digitb ())
>>>
parse parseb "test" "bxyz" :: Either ParseError (Digitb ())
Right (Digitb ())
>>>
isn't _Right (parse parseb "test" "xyz" :: Either ParseError (Digitb ()))
True
\c -> c /= 'b' ==> isn't _Right (parse parseb "test" [c] :: Either ParseError (Digitb ()))