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 #

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.

Minimal complete definition

int

Methods

int :: b -> n #

Instances

Intable ByteString Double # 

Methods

int :: ByteString -> Double #

Intable ByteString Float # 

Methods

int :: ByteString -> Float #

Intable ByteString Int # 

Methods

int :: ByteString -> Int #

Intable ByteString Int8 # 

Methods

int :: ByteString -> Int8 #

Intable ByteString Int16 # 

Methods

int :: ByteString -> Int16 #

Intable ByteString Int32 # 

Methods

int :: ByteString -> Int32 #

Intable ByteString Int64 # 

Methods

int :: ByteString -> Int64 #

Intable ByteString Integer # 

Methods

int :: ByteString -> Integer #

Intable ByteString Rational # 

Methods

int :: ByteString -> Rational #

Intable ByteString Word # 

Methods

int :: ByteString -> Word #

Intable ByteString Word8 # 

Methods

int :: ByteString -> Word8 #

Intable ByteString Word16 # 

Methods

int :: ByteString -> Word16 #

Intable ByteString Word32 # 

Methods

int :: ByteString -> Word32 #

Intable ByteString Word64 # 

Methods

int :: ByteString -> Word64 #

Intable ByteString Double # 

Methods

int :: ByteString -> Double #

Intable ByteString Float # 

Methods

int :: ByteString -> Float #

Intable ByteString Int # 

Methods

int :: ByteString -> Int #

Intable ByteString Int8 # 

Methods

int :: ByteString -> Int8 #

Intable ByteString Int16 # 

Methods

int :: ByteString -> Int16 #

Intable ByteString Int32 # 

Methods

int :: ByteString -> Int32 #

Intable ByteString Int64 # 

Methods

int :: ByteString -> Int64 #

Intable ByteString Integer # 

Methods

int :: ByteString -> Integer #

Intable ByteString Rational # 

Methods

int :: ByteString -> Rational #

Intable ByteString Word # 

Methods

int :: ByteString -> Word #

Intable ByteString Word8 # 

Methods

int :: ByteString -> Word8 #

Intable ByteString Word16 # 

Methods

int :: ByteString -> Word16 #

Intable ByteString Word32 # 

Methods

int :: ByteString -> Word32 #

Intable ByteString Word64 # 

Methods

int :: ByteString -> Word64 #

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

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