Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
parse8 :: (D8 d, CharParsing p) => p d Source #
>>>
parse (parse8 <* eof) "test" "8" :: Either ParseError DecDigit
Right DecDigit8
>>>
parse parse8 "test" "8xyz" :: Either ParseError DecDigit
Right DecDigit8
>>>
isn't _Right (parse parse8 "test" "xyz" :: Either ParseError DecDigit)
True