flat-0.3: Principled and efficient bit-oriented binary serialization.
Data.Flat.Encoder.Types
Description
Encoder Types
Synopsis
type Size a = a -> NumBits -> NumBits #
Calculate the size (in bits) of the encoding of a value
type NumBits = Int #
Number of bits
type Prim = S -> IO S #
A basic encoder
data S #
Strict encoder state
Constructors
Fields
Instances
Methods
showsPrec :: Int -> S -> ShowS #
show :: S -> String #
showList :: [S] -> ShowS #