bytestring-nums-0.3.1: Parse numeric literals from ByteStrings.

Data.ByteString.Nums.Careless.Int

Synopsis

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.