http2-0.0.1: HTTP/2.0 library including HPACK
Network.HPACK.Huffman.Bit
Synopsis
data B Source
Data type for Bit.
Constructors
Zero
One
Instances
type Bits = [B]Source
Bit sequence.
fromBits :: Bits -> Word8Source
From Bits of length 8 to Word8.
Bits
Word8
>>> fromBits [T,F,T,F,T,F,T,F] 170 >>> fromBits [F,T,F,T,F,T,F,T] 85
>>>
fromBits [T,F,T,F,T,F,T,F]
fromBits [F,T,F,T,F,T,F,T]
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]
toBits 170
toBits 85