columbia-0.1.1: Enhanced serialization for media that support seeking.

Safe HaskellTrustworthy
LanguageHaskell98

Data.Columbia

Contents

Synopsis

Documentation

Idioms

readCompoundData :: forall m d. (Monad m, Data (PairCtx RWCtx NoCtx) d) => ReaderT (SeekableStream m Word8) m d Source #

Most common idiom of using readOneLayer; reads an entire data structure.

writeCompoundData :: forall m d. (Monad m, Data (PairCtx RWCtx NoCtx) d) => d -> ReaderT (SeekableWriter m Word8) m () Source #

Convenient idiom; sells targets repeatedly until the entire data structure has been written.

writeDataWithCycles :: forall m d. (StateM m, StateOf m ~ Map (DynamicWithCtx KeyComparable) Word32, Data (PairCtx RWCtx (PairCtx KeyCtx NoCtx)) d) => d -> ReaderT (SeekableWriter m Word8) m () Source #