- positive :: Num n => n -> Word8 -> n
- negative :: Num n => n -> Word8 -> n
- lazy_unsigned :: Num n => ByteString -> n
- lazy_signed :: Num n => ByteString -> n
- strict_unsigned :: Num n => ByteString -> n
- strict_signed :: Num n => ByteString -> n
- class Num n => Intable b n where
- int :: b -> n
Documentation
positive :: Num n => n -> Word8 -> nSource
Folds a byte into the accumulator, assuming the number we are parsing is a positive number.
negative :: Num n => n -> Word8 -> nSource
Folds a byte into the accumulator, assuming the number we are parsing is a negative number.
lazy_unsigned :: Num n => ByteString -> nSource
Implementation of unsigned number parser for
Data.ByteString.Lazy.ByteString
. Only digits are parsed; no sign
specifier is allowed.
lazy_signed :: Num n => ByteString -> nSource
Implementation of signed number parser for
Data.ByteString.Lazy.ByteString
. An initial, optional sign specifier is
okay.
strict_unsigned :: Num n => ByteString -> nSource
Implementation of unsigned number parser for ByteString
.
Only digits are parsed; no sign specifier is allowed.
strict_signed :: Num n => ByteString -> nSource
Implementation of signed number parser for ByteString
.
An initial, optional sign specifier is okay.
class Num n => Intable b n whereSource
Types that can be read from integer strings. Parses only decimal digits. Signed types can be read from strings that begin with a plus or minus; unsigned types are read from strings consisting solely of decimal digits.