Safe Haskell | None |
---|---|
Language | Haskell2010 |
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