definitive-parser-2.1: A parser combinator library for the Definitive framework

Safe HaskellNone
LanguageHaskell2010

Data.Serialize

Contents

Synopsis

You'll need this

Serialization

data Builder :: *

Builders denote sequences of bytes. They are Monoids where mempty is the zero-length sequence and mappend is concatenation, which runs in O(1).

Convenience functions

word8 :: Word8 -> Builder

Encode a single unsigned byte as-is.

data Either3 a b c Source

Constructors

Alt3l'1 a 
Alt3l'2 b 
Alt3l'3 c 

GND replacement for GHC 7.8

coerceEncode :: forall t t'. Serializable t => (t -> t') -> t' -> Builder Source

coerceSerializable :: forall t t'. Serializable t => (t -> t') -> Parser Bytes t' Source