digit-0.6: A data-type representing digits 0-9 and other combinations

Safe HaskellNone
LanguageHaskell2010

Data.Digit.De

Synopsis

Documentation

class De d where Source #

Minimal complete definition

de

Methods

de :: Prism' d () Source #

xe :: d Source #

Instances

parsee :: (De d, CharParsing p) => p d Source #

>>> parse (parsee <* eof) "test" "e" :: Either ParseError HexDigit
Right HexDigite
>>> parse parsee "test" "exyz" :: Either ParseError HexDigit
Right HexDigite
>>> isn't _Right (parse parsee "test" "xyz" :: Either ParseError HexDigit)
True