flat-0.3.2: Principled and efficient bit-oriented binary serialization.

Safe HaskellNone
LanguageHaskell2010

Data.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

data S Source #

Strict encoder state

Constructors

S 

Fields

Instances

Show S Source # 

Methods

showsPrec :: Int -> S -> ShowS #

show :: S -> String #

showList :: [S] -> ShowS #