caerbannog-0.6.0.2: Bit parsing/writing on top of binary.

Safe HaskellNone
LanguageHaskell98

Data.Binary.Bits

Description

Parse and write bits easily. Parsing can be done either in a monadic style, or more efficiently, using the Applicative style. Writing is monadic style only. See Data.Binary.Bits.Get and Data.Binary.Bits.Put, respectively.

Documentation

class BinaryBit a where Source #

Methods

putBits :: Int -> a -> BitPut () Source #

getBits :: Int -> BitGet a Source #

Instances
BinaryBit Bool Source # 
Instance details

Defined in Data.Binary.Bits

BinaryBit Word8 Source # 
Instance details

Defined in Data.Binary.Bits

BinaryBit Word16 Source # 
Instance details

Defined in Data.Binary.Bits

BinaryBit Word32 Source # 
Instance details

Defined in Data.Binary.Bits

BinaryBit Word64 Source # 
Instance details

Defined in Data.Binary.Bits