flat-0.6: Principled and efficient bit-oriented binary serialization.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Flat.Encoder.Types

Description

Encoder Types

Synopsis

Documentation

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

Add the maximum size in bits of the encoding of value a to a NumBits

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

Instances details
Show S Source # 
Instance details

Defined in Flat.Encoder.Types

Methods

showsPrec :: Int -> S -> ShowS #

show :: S -> String #

showList :: [S] -> ShowS #