| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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
- putWithEnumeration :: Enumeration ty -> ty -> Put
- getWithEnumeration :: Enumeration ty -> Get ty
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.