toxcore-0.2.12: A Tox protocol implementation in Haskell
Copyright(c) Lennart Kolmodin 2010-2011
LicenseBSD3-style (see LICENSE)
Maintainerkolmodin@gmail.com
Stabilityexperimental
Portabilityportable (should run where the package binary runs)
Safe HaskellNone
LanguageHaskell2010

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

Instances details
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