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

Safe HaskellNone
LanguageHaskell2010

Data.Digit.Class.D7

Synopsis

Documentation

class D7 d where Source #

Minimal complete definition

d7

Methods

d7 :: Prism' d () Source #

x7 :: d Source #

Instances
D7 () Source # 
Instance details

Defined in Data.Digit.Class.D7

Methods

d7 :: Prism' () () Source #

x7 :: () Source #

D7 DecDigit Source # 
Instance details

Defined in Data.Digit.Decimal

D7 HexDigit Source # 
Instance details

Defined in Data.Digit.Hexadecimal.LowerCase

D7 HeXDigit Source # 
Instance details

Defined in Data.Digit.Hexadecimal.MixedCase

D7 HEXDigit Source # 
Instance details

Defined in Data.Digit.Hexadecimal.UpperCase

D7 OctDigit Source # 
Instance details

Defined in Data.Digit.Octal

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