packages feed

conduit 1.2.6.6 → 1.2.7

raw patch · 4 files changed

+12/−4 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Data.Conduit: infixl 1 $=+
+ Data.Conduit: infixr 0 =$$+-
+ Data.Conduit: infixr 2 =$=
+ Data.Conduit: yieldM :: Monad m => m o -> ConduitM i o m ()
+ Data.Conduit.Internal: infixl 1 $=
+ Data.Conduit.Internal: infixl 9 >+>
+ Data.Conduit.Internal: infixr 0 $$
+ Data.Conduit.Internal: infixr 2 =$=
+ Data.Conduit.Internal: infixr 9 <+<

Files

ChangeLog.md view
@@ -1,3 +1,7 @@+## 1.2.7++* Expose yieldM for ConduitM [#270](https://github.com/snoyberg/conduit/pull/270)+ ## 1.2.6.6  * Fix test suite compilation on older GHCs
Data/Conduit.hs view
@@ -3,7 +3,7 @@ {-# LANGUAGE Safe #-} -- | If this is your first time with conduit, you should probably start with -- the tutorial:--- <https://haskell.fpcomplete.com/user/snoyberg/library-documentation/conduit-overview>.+-- <https://github.com/snoyberg/conduit#readme>. module Data.Conduit     ( -- * Core interface       -- ** Types@@ -27,6 +27,7 @@       -- ** Primitives     , await     , yield+    , yieldM     , leftover     , runConduit 
Data/Conduit/Internal/Conduit.hs view
@@ -419,7 +419,7 @@ -- example, if an exception is thrown in a @Source@ feeding to a @Sink@, and -- the @Sink@ uses @catchC@, the exception will /not/ be caught. ----- Due to this behavior (as well as lack of async exception handling), you+-- Due to this behavior (as well as lack of async exception safety), you -- should not try to implement combinators such as @onException@ in terms of this -- primitive function. --@@ -842,6 +842,9 @@ yield o = yieldOr o (return ()) {-# INLINE yield #-} +-- | Send a monadic value downstream for the next component to consume.+--+-- @since 1.2.7 yieldM :: Monad m => m o -> ConduitM i o m () yieldM mo = lift mo >>= yield {-# INLINE yieldM #-}@@ -854,7 +857,7 @@ -- /Note/: it is highly encouraged to only return leftover values from input -- already consumed from upstream. ----- Since 0.5.0+-- @since 0.5.0 leftover :: i -> ConduitM i o m () leftover i = ConduitM $ \rest -> Leftover (rest ()) i {-# INLINE leftover #-}
conduit.cabal view
@@ -1,5 +1,5 @@ Name:                conduit-Version:             1.2.6.6+Version:             1.2.7 Synopsis:            Streaming data processing library. description:     Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/conduit>.