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

Safe HaskellNone
LanguageHaskell98

Data.ByteString.Nums.Careless.Int

Synopsis

Documentation

class Num n => Intable b n where Source #

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 Source #

Instances
Intable ByteString Double Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Double Source #

Intable ByteString Float Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Float Source #

Intable ByteString Int Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Int Source #

Intable ByteString Int8 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Int8 Source #

Intable ByteString Int16 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Int16 Source #

Intable ByteString Int32 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Int32 Source #

Intable ByteString Int64 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Int64 Source #

Intable ByteString Integer Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Integer Source #

Intable ByteString Rational Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Rational Source #

Intable ByteString Word Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Word Source #

Intable ByteString Word8 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Word8 Source #

Intable ByteString Word16 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Word16 Source #

Intable ByteString Word32 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Word32 Source #

Intable ByteString Word64 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Word64 Source #

Intable ByteString Double Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Double Source #

Intable ByteString Float Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Float Source #

Intable ByteString Int Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Int Source #

Intable ByteString Int8 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Int8 Source #

Intable ByteString Int16 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Int16 Source #

Intable ByteString Int32 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Int32 Source #

Intable ByteString Int64 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Int64 Source #

Intable ByteString Integer Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Integer Source #

Intable ByteString Rational Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Rational Source #

Intable ByteString Word Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Word Source #

Intable ByteString Word8 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Word8 Source #

Intable ByteString Word16 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Word16 Source #

Intable ByteString Word32 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Word32 Source #

Intable ByteString Word64 Source # 
Instance details

Defined in Data.ByteString.Nums.Careless.Int

Methods

int :: ByteString -> Word64 Source #

lazy_unsigned :: Num n => ByteString -> n Source #

lazy_signed :: Num n => ByteString -> n Source #

strict_unsigned :: Num n => ByteString -> n Source #

strict_signed :: Num n => ByteString -> n Source #

positive :: Num n => n -> Word8 -> n Source #

negative :: Num n => n -> Word8 -> n Source #