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

Safe HaskellNone
LanguageHaskell2010

Data.Digit.Class.D6

Synopsis

Documentation

class D6 d where Source #

Minimal complete definition

d6

Methods

d6 :: Prism' d () Source #

x6 :: d Source #

Instances
D6 () Source # 
Instance details

Defined in Data.Digit.Class.D6

Methods

d6 :: Prism' () () Source #

x6 :: () Source #

D6 DecDigit Source # 
Instance details

Defined in Data.Digit.Decimal

D6 HexDigit Source # 
Instance details

Defined in Data.Digit.Hexadecimal.LowerCase

D6 HeXDigit Source # 
Instance details

Defined in Data.Digit.Hexadecimal.MixedCase

D6 HEXDigit Source # 
Instance details

Defined in Data.Digit.Hexadecimal.UpperCase

D6 OctDigit Source # 
Instance details

Defined in Data.Digit.Octal

parse6 :: (D6 d, CharParsing p) => p d Source #

>>> parse (parse6 <* eof) "test" "6" :: Either ParseError DecDigit
Right DecDigit6
>>> parse parse6 "test" "6xyz" :: Either ParseError DecDigit
Right DecDigit6
>>> isn't _Right (parse parse6 "test" "xyz" :: Either ParseError DecDigit)
True