hw-bits-0.7.2.1: Bit manipulation

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Bits.BitRead

Synopsis

Documentation

class BitRead a where Source #

Bit string reader that produces a value of a type

Methods

bitRead :: String -> Maybe a Source #

Read a bit string into a value

Instances
BitRead Word8 Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead Word16 Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead Word32 Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead Word64 Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead ByteString Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead [Bool] Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

Methods

bitRead :: String -> Maybe [Bool] Source #

BitRead [Word8] Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

Methods

bitRead :: String -> Maybe [Word8] Source #

BitRead [Word16] Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead [Word32] Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead [Word64] Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead (Vector Bit) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead (Vector Bit) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead (Vector Word8) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead (Vector Word16) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead (Vector Word32) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead (Vector Word64) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead (Vector Word8) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead (Vector Word16) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead (Vector Word32) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead (Vector Word64) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitRead

BitRead a => BitRead (BitShown a) Source # 
Instance details

Defined in HaskellWorks.Data.Bits.BitShown

Methods

bitRead :: String -> Maybe (BitShown a) Source #

unsafeBitRead :: BitRead a => String -> a Source #

Read a bit string into a value.

This function is unsafe because it is a partial function that errors if the input string is an invaild bit string