packages feed

conduit-combinators 1.0.8 → 1.0.8.1

raw patch · 3 files changed

+12/−6 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Conduit: lift :: (MonadTrans t, Monad m) => m a -> t m a
+ Conduit: lift :: Monad m => m a -> t m a
- Conduit: liftBase :: MonadBase b m => b α -> m α
+ Conduit: liftBase :: b α -> m α
- Conduit: liftIO :: MonadIO m => IO a -> m a
+ Conduit: liftIO :: IO a -> m a
- Conduit: throwM :: (MonadThrow m, Exception e) => e -> m a
+ Conduit: throwM :: Exception e => e -> m a

Files

ChangeLog.md view
@@ -1,3 +1,8 @@+# 1.0.8.1++* Break on single elements and defer monoid concatenation until yield+  [#111](https://github.com/snoyberg/mono-traversable/pull/111)+ # 1.0.8  * Add lower bound on conduit 1.2.8 (make it easier to follow [the
Data/Conduit/Combinators.hs view
@@ -2015,16 +2015,17 @@ splitOnUnboundedEC f =     start   where-    start = await >>= maybe (return ()) loop+    start = await >>= maybe (return ()) (loop id) -    loop t =+    loop bldr t =         if onull y             then do                 mt <- await                 case mt of-                    Nothing -> unless (onull t) $ yield t-                    Just t' -> loop (t `mappend` t')-            else yield x >> loop (Seq.drop 1 y)+                    Nothing -> let finalChunk = mconcat $ bldr [t]+                               in  unless (onull finalChunk) $ yield finalChunk+                    Just t' -> loop (bldr . (t:)) t'+            else yield (mconcat $ bldr [x]) >> loop id (Seq.drop 1 y)       where         (x, y) = Seq.break f t STREAMING(splitOnUnboundedE, splitOnUnboundedEC, splitOnUnboundedES, f)
conduit-combinators.cabal view
@@ -1,5 +1,5 @@ name:                conduit-combinators-version:             1.0.8+version:             1.0.8.1 synopsis:            Commonly used conduit functions, for both chunked and unchunked data description:         Provides a replacement for Data.Conduit.List, as well as a convenient Conduit module. homepage:            https://github.com/snoyberg/mono-traversable