cereal-conduit-0.0.6.1: Turn Data.Serialize Gets and Puts into Sources, Sinks, and Conduits

Safe HaskellSafe-Infered

Data.Conduit.Cereal.Internal

Synopsis

Documentation

type ErrorHandler i o m r = String -> Maybe ByteString -> Pipe i o m rSource

What should we do if the Get fails?

type TerminationHandler i o m r = (ByteString -> Result r) -> Maybe ByteString -> Pipe i o m rSource

What should we do if the stream is done before the Get is done?

mkConduitGet :: Monad m => ErrorHandler ByteString o m () -> Get o -> Conduit ByteString m oSource

Construct a conduitGet with the specified ErrorHandler

mkSinkGet :: Monad m => ErrorHandler ByteString Void m r -> TerminationHandler ByteString Void m r -> Get r -> Sink ByteString m rSource

Construct a sinkGet with the specified ErrorHandler and TerminationHandler