Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class D9 d where
- parse9 :: (D9 d, CharParsing p) => p d
Documentation
parse9 :: (D9 d, CharParsing p) => p d Source #
>>>
parse (parse9 <* eof) "test" "9" :: Either ParseError DecDigit
Right DecDigit9
>>>
parse parse9 "test" "9xyz" :: Either ParseError DecDigit
Right DecDigit9
>>>
isn't _Right (parse parse9 "test" "xyz" :: Either ParseError DecDigit)
True