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

Safe HaskellNone
LanguageHaskell2010

Data.Digit.Class.D5

Synopsis

Documentation

class D5 d where Source #

Minimal complete definition

d5

Methods

d5 :: Prism' d () Source #

x5 :: d Source #

Instances
D5 () Source # 
Instance details

Defined in Data.Digit.Class.D5

Methods

d5 :: Prism' () () Source #

x5 :: () Source #

D5 DecDigit Source # 
Instance details

Defined in Data.Digit.Decimal

D5 HexDigit Source # 
Instance details

Defined in Data.Digit.Hexadecimal.LowerCase

D5 HeXDigit Source # 
Instance details

Defined in Data.Digit.Hexadecimal.MixedCase

D5 HEXDigit Source # 
Instance details

Defined in Data.Digit.Hexadecimal.UpperCase

D5 OctDigit Source # 
Instance details

Defined in Data.Digit.Octal

parse5 :: (D5 d, CharParsing p) => p d Source #

>>> parse (parse5 <* eof) "test" "5" :: Either ParseError DecDigit
Right DecDigit5
>>> parse parse5 "test" "5xyz" :: Either ParseError DecDigit
Right DecDigit5
>>> isn't _Right (parse parse5 "test" "xyz" :: Either ParseError DecDigit)
True