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