http2-0.0.1: HTTP/2.0 library including HPACK

Safe HaskellSafe-Inferred

Network.HPACK.Huffman.Bit

Synopsis

Documentation

data B Source

Data type for Bit.

Constructors

F

Zero

T

One

Instances

Eq B 
Ord B 
Show B 

type Bits = [B]Source

Bit sequence.

fromBits :: Bits -> Word8Source

From Bits of length 8 to Word8.

>>> fromBits [T,F,T,F,T,F,T,F]
170
>>> fromBits [F,T,F,T,F,T,F,T]
85

toBits :: Word8 -> BitsSource

From Word8 to Bits of length 8.

>>> toBits 170
[T,F,T,F,T,F,T,F]
>>> toBits 85
[F,T,F,T,F,T,F,T]