hw-bits-0.7.0.2: 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

Minimal complete definition

bitRead

Methods

bitRead :: String -> Maybe a Source #

Read a bit string into a value

Instances

BitRead Word8 Source # 
BitRead Word16 Source # 
BitRead Word32 Source # 
BitRead Word64 Source # 
BitRead ByteString Source # 
BitRead [Bool] Source # 

Methods

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

BitRead [Word8] Source # 

Methods

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

BitRead [Word16] Source # 
BitRead [Word32] Source # 
BitRead [Word64] Source # 
BitRead (Vector Word8) Source # 
BitRead (Vector Word16) Source # 
BitRead (Vector Word32) Source # 
BitRead (Vector Word64) Source # 
BitRead (Vector Word8) Source # 
BitRead (Vector Word16) Source # 
BitRead (Vector Word32) Source # 
BitRead (Vector Word64) Source # 
BitRead a => BitRead (BitShown a) Source # 

Methods

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