conduit 1.0.8 → 1.0.9
raw patch · 3 files changed
+14/−5 lines, 3 files
Files
- Data/Conduit/Binary.hs +10/−3
- Data/Conduit/Internal.hs +3/−1
- conduit.cabal +1/−1
Data/Conduit/Binary.hs view
@@ -19,6 +19,7 @@ , sinkIOHandle -- ** Conduits , conduitFile+ , conduitHandle -- * Utilities -- ** Sources , sourceLbs@@ -198,9 +199,15 @@ conduitFile fp = bracketP (IO.openBinaryFile fp IO.WriteMode) IO.hClose- go- where- go h = awaitForever $ \bs -> liftIO (S.hPut h bs) >> yield bs+ conduitHandle++-- | Stream the contents of the input to a @Handle@, and also send it along the+-- pipeline. Similar in concept to the Unix command @tee@. Like @sourceHandle@,+-- does not close the handle on completion. Related to: @conduitFile@.+--+-- Since 1.0.9+conduitHandle :: MonadIO m => IO.Handle -> Conduit S.ByteString m S.ByteString+conduitHandle h = awaitForever $ \bs -> liftIO (S.hPut h bs) >> yield bs -- | Ensure that only up to the given number of bytes are consume by the inner -- sink. Note that this does /not/ ensure that all of those bytes are in fact
Data/Conduit/Internal.hs view
@@ -258,8 +258,10 @@ -- | Consumes a stream of input values and produces a final result, without -- producing any output. --+-- > type Sink i m r = ConduitM i Void m r+-- -- Since 0.5.0-type Sink i m r = ConduitM i Void m r+type Sink i = ConduitM i Void -- | A component which consumes a stream of input values and produces a final -- result, regardless of the output stream. A @Consumer@ is a generalization of
conduit.cabal view
@@ -1,5 +1,5 @@ Name: conduit-Version: 1.0.8+Version: 1.0.9 Synopsis: Streaming data processing library. Description: @conduit@ is a solution to the streaming data problem, allowing for production, transformation, and consumption of streams of data in constant memory. It is an alternative to lazy I\/O which guarantees deterministic resource handling, and fits in the same general solution space as @enumerator@\/@iteratee@ and @pipes@. For a tutorial, please visit <https://haskell.fpcomplete.com/user/snoyberg/library-documentation/conduit-overview>.