Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.Digit.Class.D4
Documentation
Minimal complete definition
parse4 :: (D4 d, CharParsing p) => p d Source #
>>>
parse (parse4 <* eof) "test" "4" :: Either ParseError DecDigit
Right DecDigit4
>>>
parse parse4 "test" "4xyz" :: Either ParseError DecDigit
Right DecDigit4
>>>
isn't _Right (parse parse4 "test" "xyz" :: Either ParseError DecDigit)
True