Data.ByteString.Nums.Careless.Int

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

Data.ByteString.Nums.Careless.Int

Synopsis

- class Num n => Intable b n where
  - int :: b -> n
- lazy_unsigned :: Num n => ByteString -> n
- strict_unsigned :: Num n => ByteString -> n

# Documentation

class Num n => Intable b n where

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.

Methods

int :: b -> n

Instances

Intable ByteString Double |
Intable ByteString Float |
Intable ByteString Int |
Intable ByteString Int8 |
Intable ByteString Int16 |
Intable ByteString Int32 |
Intable ByteString Int64 |
Intable ByteString Integer |
Intable ByteString Rational |
Intable ByteString Word |
Intable ByteString Word8 |
Intable ByteString Word16 |
Intable ByteString Word32 |
Intable ByteString Word64 |
Intable ByteString Double |
Intable ByteString Float |
Intable ByteString Int |
Intable ByteString Int8 |
Intable ByteString Int16 |
Intable ByteString Int32 |
Intable ByteString Int64 |
Intable ByteString Integer |
Intable ByteString Rational |
Intable ByteString Word |
Intable ByteString Word8 |
Intable ByteString Word16 |
Intable ByteString Word32 |
Intable ByteString Word64 |

lazy_unsigned :: Num n => ByteString -> n

strict_unsigned :: Num n => ByteString -> n