columbia-0.1.3: 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.