flat-0.4.4.0.0.0.0.2: Principled and efficient bit-oriented binary serialization.
Safe Haskell None
Language Haskell2010

Flat.Encoder.Types

Description

Encoder Types

Synopsis

Documentation

type Size a = a -> NumBits -> NumBits Source #

Calculate the size (in bits) of the encoding of a value

type NumBits = Int Source #

Number of bits

type Prim = S -> IO S Source #

A basic encoder