cereal-plus-0.3.3: An extended serialization library on top of "cereal"

Safe HaskellNone

CerealPlus.Serialize

Description

A monad-transformer over Data.Serialize.Put.

Synopsis

Documentation

run :: Monad m => Serialize m a -> m (a, ByteString)Source

Run and get the monad result paired with a bytestring of serialized data.

runLazy :: Monad m => Serialize m a -> m (a, LazyByteString)Source

Run and get the monad result paired with a lazy bytestring of serialized data.

exec :: Monad m => Serialize m a -> m ByteStringSource

Run and get a bytestring of serialized data.

execLazy :: Monad m => Serialize m a -> m LazyByteStringSource

Run and get a lazy bytestring of serialized data.

liftPut :: Monad m => Put -> Serialize m ()Source

Run a Put action of the "cereal" library.

mapBase :: (forall b. m b -> m' b) -> Serialize m a -> Serialize m' aSource

Change the base monad. Same as transMap of the "layers" library.