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

Safe HaskellNone
LanguageHaskell2010

Data.Digit.Dd

Synopsis

Documentation

class Dd d where Source #

Minimal complete definition

dd

Methods

dd :: Prism' d () Source #

xd :: d Source #

Instances

parsed :: (Dd d, CharParsing p) => p d Source #

>>> parse (parsed <* eof) "test" "d" :: Either ParseError HexDigit
Right HexDigitd
>>> parse parsed "test" "dxyz" :: Either ParseError HexDigit
Right HexDigitd
>>> isn't _Right (parse parsed "test" "xyz" :: Either ParseError HexDigit)
True