binary-shared-0.8: Sharing for the binary package

Data.Binary.Shared

Description

Binary serializing with sharing

Synopsis

Documentation

class (Typeable alpha, Ord alpha, Eq alpha, Show alpha) => BinaryShared alpha whereSource

A class for storing Binary instances with shared nodes. Cycles are not supported, cause put and get is a one path process.

Methods

put :: alpha -> PutSharedSource

Encode a value in the Put monad.

putShared :: (alpha -> PutShared) -> alpha -> PutSharedSource

get :: GetShared alphaSource

Decode a value in the Get monad

getShared :: GetShared alpha -> GetShared alphaSource