streaming-conduit 0.1.2.1 → 0.1.2.2
raw patch · 3 files changed
+11/−7 lines, 3 filesdep ~conduitPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: conduit
API changes (from Hackage documentation)
Files
- ChangeLog.md +4/−0
- src/Streaming/Conduit.hs +4/−4
- streaming-conduit.cabal +3/−3
ChangeLog.md view
@@ -1,5 +1,9 @@ # Revision history for streaming-conduit +## 0.1.2.2 -- 2018-02-11++* Add support for conduit-1.3.0.+ ## 0.1.2.1 -- 2018-02-08 * Bump dependency on streaming to support 0.2.0.0.
src/Streaming/Conduit.hs view
@@ -42,9 +42,9 @@ import Data.ByteString (ByteString) import qualified Data.ByteString.Streaming as B import Data.Conduit (Conduit, ConduitM, Producer, Source,- await, runConduit, (.|))+ await, runConduit, transPipe, (.|)) import qualified Data.Conduit.List as CL-import Streaming (Of, Stream, hoist)+import Streaming (Of, Stream) import qualified Streaming.Prelude as S --------------------------------------------------------------------------------@@ -78,12 +78,12 @@ -- values are required. If you need such functionality, see -- 'asStream'. toStream :: (Monad m) => Producer m o -> Stream (Of o) m ()-toStream cnd = runConduit (hoist lift cnd .| CL.mapM_ S.yield)+toStream cnd = runConduit (transPipe lift cnd .| CL.mapM_ S.yield) -- | Convert a 'Producer' to a 'B.ByteString' stream. Subject to -- fusion. toBStream :: (Monad m) => Producer m ByteString -> B.ByteString m ()-toBStream cnd = runConduit (hoist lift cnd .| CL.mapM_ B.chunk)+toBStream cnd = runConduit (transPipe lift cnd .| CL.mapM_ B.chunk) -- | Treat a 'Conduit' as a function between 'Stream's. Subject to -- fusion.
streaming-conduit.cabal view
@@ -1,5 +1,5 @@ name: streaming-conduit-version: 0.1.2.1+version: 0.1.2.2 synopsis: Bidirectional support between the streaming and conduit libraries description: Allow interoperability between the streaming and conduit data streaming ecosystems. license: MIT@@ -11,7 +11,7 @@ build-type: Simple extra-source-files: ChangeLog.md, README.md cabal-version: >=1.10-tested-with: GHC == 7.10.2, GHC == 8.0.2, GHC == 8.1.*+tested-with: GHC == 7.10.2, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.3.* source-repository head type: git@@ -21,7 +21,7 @@ exposed-modules: Streaming.Conduit build-depends: base >=4.6 && <5 , bytestring- , conduit >= 1.2.11 && < 1.3+ , conduit >= 1.2.11 && < 1.4 , streaming >= 0.1.3.0 && < 0.3 , streaming-bytestring == 0.1.* , transformers >= 0.2