Safe Haskell | Safe-Infered |
---|
Turn a Get
into a Sink
and a Put
into a Source
These functions are built upno the Data.Conduit.Cereal.Internal functions with default
implementations of ErrorHandler
and TerminationHandler
The default ErrorHandler
and TerminationHandler
both throw a GetException
.
- data GetException
- sinkGet :: MonadThrow m => Get r -> Sink ByteString m r
- conduitGet :: MonadThrow m => Get output -> Conduit ByteString m output
- sourcePut :: Monad m => Put -> Source m ByteString
- conduitPut :: Monad m => Putter input -> Conduit input m ByteString
Documentation
sinkGet :: MonadThrow m => Get r -> Sink ByteString m rSource
conduitGet :: MonadThrow m => Get output -> Conduit ByteString m outputSource
sourcePut :: Monad m => Put -> Source m ByteStringSource
Convert a Put
into a Source
. Runs in constant memory.
conduitPut :: Monad m => Putter input -> Conduit input m ByteStringSource
Run a Putter
repeatedly on the input stream, producing a concatenated ByteString
stream.