Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class D0 d where
- parse0 :: (D0 d, CharParsing p) => p d
Documentation
parse0 :: (D0 d, CharParsing p) => p d Source #
>>>
parse (parse0 <* eof) "test" "0" :: Either ParseError BinDigit
Right BinDigit0
>>>
parse parse0 "test" "0xyz" :: Either ParseError BinDigit
Right BinDigit0
>>>
isn't _Right (parse parse0 "test" "xyz" :: Either ParseError BinDigit)
True