enumeration-0.1.0: A practical API for building recursive enumeration procedures and enumerating datatypes.

Safe HaskellNone
LanguageHaskell2010

Data.Enumeration.Binary

Description

Functions for binary serialization/deserialization of datatypes using an Enumeration. These functions write out/read in binary data as a sequence of natural numbers representing a path (using the same coding scheme as Data.Encoding.Binary).

Synopsis

Documentation

putWithEnumeration :: Enumeration ty -> ty -> Put Source

Use an Enumeration to write out a ty as binary data

getWithEnumeration :: Enumeration ty -> Get ty Source

Use an Enumeration to extract a ty from binary data.