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

Safe HaskellNone
LanguageHaskell98

Data.ByteString.Nums.Careless.Hex

Synopsis

Documentation

class Num n => Hexable b n where #

Types that can be read from hexadecimal strings. Characters that are not hexadecimal digits are skipped over. One pleasant consequence of this is that a leading 0x is simply ignored.

Minimal complete definition

hex

Methods

hex :: b -> n #

Instances

Hexable ByteString Double # 

Methods

hex :: ByteString -> Double #

Hexable ByteString Float # 

Methods

hex :: ByteString -> Float #

Hexable ByteString Int # 

Methods

hex :: ByteString -> Int #

Hexable ByteString Int8 # 

Methods

hex :: ByteString -> Int8 #

Hexable ByteString Int16 # 

Methods

hex :: ByteString -> Int16 #

Hexable ByteString Int32 # 

Methods

hex :: ByteString -> Int32 #

Hexable ByteString Int64 # 

Methods

hex :: ByteString -> Int64 #

Hexable ByteString Integer # 

Methods

hex :: ByteString -> Integer #

Hexable ByteString Rational # 

Methods

hex :: ByteString -> Rational #

Hexable ByteString Word # 

Methods

hex :: ByteString -> Word #

Hexable ByteString Word8 # 

Methods

hex :: ByteString -> Word8 #

Hexable ByteString Word16 # 

Methods

hex :: ByteString -> Word16 #

Hexable ByteString Word32 # 

Methods

hex :: ByteString -> Word32 #

Hexable ByteString Word64 # 

Methods

hex :: ByteString -> Word64 #

Hexable ByteString Double # 

Methods

hex :: ByteString -> Double #

Hexable ByteString Float # 

Methods

hex :: ByteString -> Float #

Hexable ByteString Int # 

Methods

hex :: ByteString -> Int #

Hexable ByteString Int8 # 

Methods

hex :: ByteString -> Int8 #

Hexable ByteString Int16 # 

Methods

hex :: ByteString -> Int16 #

Hexable ByteString Int32 # 

Methods

hex :: ByteString -> Int32 #

Hexable ByteString Int64 # 

Methods

hex :: ByteString -> Int64 #

Hexable ByteString Integer # 

Methods

hex :: ByteString -> Integer #

Hexable ByteString Rational # 

Methods

hex :: ByteString -> Rational #

Hexable ByteString Word # 

Methods

hex :: ByteString -> Word #

Hexable ByteString Word8 # 

Methods

hex :: ByteString -> Word8 #

Hexable ByteString Word16 # 

Methods

hex :: ByteString -> Word16 #

Hexable ByteString Word32 # 

Methods

hex :: ByteString -> Word32 #

Hexable ByteString Word64 # 

Methods

hex :: ByteString -> Word64 #

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

strict_hex :: Num n => ByteString -> n #

lazy_hex :: Num n => ByteString -> n #