Hello community, here is the log from the commit of package ghc-conduit for openSUSE:Factory checked in at 2015-08-05 06:50:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-conduit (Old) and /work/SRC/openSUSE:Factory/.ghc-conduit.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-conduit" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-conduit/ghc-conduit.changes 2015-05-21 08:11:25.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-conduit.new/ghc-conduit.changes 2015-08-05 06:50:48.000000000 +0200 @@ -1,0 +2,7 @@ +Mon Jul 27 07:14:48 UTC 2015 - mimi...@gmail.com + +- update to 1.2.5 +* mapAccum and mapAccumM should be strict in their state +* Some documentation improvements + +------------------------------------------------------------------- Old: ---- conduit-1.2.4.tar.gz New: ---- conduit-1.2.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-conduit.spec ++++++ --- /var/tmp/diff_new_pack.C2aOcN/_old 2015-08-05 06:50:49.000000000 +0200 +++ /var/tmp/diff_new_pack.C2aOcN/_new 2015-08-05 06:50:49.000000000 +0200 @@ -19,7 +19,7 @@ %global pkg_name conduit Name: ghc-conduit -Version: 1.2.4 +Version: 1.2.5 Release: 0 Summary: Streaming data processing library License: MIT ++++++ conduit-1.2.4.tar.gz -> conduit-1.2.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/conduit-1.2.4/Data/Conduit/Internal/Conduit.hs new/conduit-1.2.5/Data/Conduit/Internal/Conduit.hs --- old/conduit-1.2.4/Data/Conduit/Internal/Conduit.hs 2015-02-19 07:34:30.000000000 +0100 +++ new/conduit-1.2.5/Data/Conduit/Internal/Conduit.hs 2015-07-23 16:05:01.000000000 +0200 @@ -722,15 +722,7 @@ return res {-# INLINE [1] ($$) #-} --- | Left fuse, combining a source and a conduit together into a new source. --- --- Both the @Source@ and @Conduit@ will be closed when the newly-created --- @Source@ is closed. --- --- Leftover data from the @Conduit@ will be discarded. --- --- Note: Since version 1.0.18, this operator has been generalized to be --- identical to @=$=@. +-- | A synonym for '=$=' for backwards compatibility. -- -- Since 0.4.0 ($=) :: Monad m => Conduit a m b -> ConduitM b c m r -> ConduitM a c m r @@ -738,15 +730,7 @@ {-# INLINE [0] ($=) #-} {-# RULES "conduit: $= is =$=" ($=) = (=$=) #-} --- | Right fuse, combining a conduit and a sink together into a new sink. --- --- Both the @Conduit@ and @Sink@ will be closed when the newly-created @Sink@ --- is closed. --- --- Leftover data returned from the @Sink@ will be discarded. --- --- Note: Since version 1.0.18, this operator has been generalized to be --- identical to @=$=@. +-- | A synonym for '=$=' for backwards compatibility. -- -- Since 0.4.0 (=$) :: Monad m => Conduit a m b -> ConduitM b c m r -> ConduitM a c m r @@ -787,7 +771,8 @@ {-# INLINE [1] (=$=) #-} -- | Wait for a single input value from upstream. If no data is available, --- returns @Nothing@. +-- returns @Nothing@. Once @await@ returns @Nothing@, subsequent calls will +-- also return @Nothing@. -- -- Since 0.5.0 await :: Monad m => Consumer i m (Maybe i) @@ -1063,6 +1048,12 @@ -- differently. It feeds one sink with input until it finishes, then switches -- to another, etc., and at the end combines their results. -- +-- This newtype is in fact a type constrained version of 'ZipConduit', and has +-- the same behavior. It's presented as a separate type since (1) it +-- historically predates @ZipConduit@, and (2) the type constraining can make +-- your code clearer (and thereby make your error messages more easily +-- understood). +-- -- Since 1.0.13 newtype ZipSink i m r = ZipSink { getZipSink :: Sink i m r } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/conduit-1.2.4/Data/Conduit/List.hs new/conduit-1.2.5/Data/Conduit/List.hs --- old/conduit-1.2.4/Data/Conduit/List.hs 2015-02-19 07:34:30.000000000 +0100 +++ new/conduit-1.2.5/Data/Conduit/List.hs 2015-07-23 16:05:01.000000000 +0200 @@ -510,7 +510,7 @@ {-# INLINE concatMapMC #-} STREAMING(concatMapM, concatMapMC, concatMapMS, f) --- | 'concatMap' with an accumulator. +-- | 'concatMap' with a strict accumulator. -- -- Subject to fusion -- @@ -534,7 +534,9 @@ scanlM f s = void $ mapAccumM f s {-# DEPRECATED scanlM "Use mapAccumM instead" #-} --- | Analog of @mapAccumL@ for lists. +-- | Analog of @mapAccumL@ for lists. Note that in contrast to @mapAccumL@, the function argument +-- takes the accumulator as its second argument, not its first argument, and the accumulated value +-- is strict. -- -- Subject to fusion -- @@ -543,7 +545,7 @@ mapAccumC f = loop where - loop s = await >>= maybe (return s) go + loop !s = await >>= maybe (return s) go where go a = case f a s of (s', b) -> yield b >> loop s' @@ -558,7 +560,7 @@ mapAccumMC f = loop where - loop s = await >>= maybe (return s) go + loop !s = await >>= maybe (return s) go where go a = do (s', b) <- lift $ f a s yield b @@ -582,7 +584,7 @@ scanM :: Monad m => (a -> b -> m b) -> b -> ConduitM a b m b INLINE_RULE(scanM, f, mapAccumM (\a b -> f a b >>= \r -> return (r, r))) --- | 'concatMapM' with an accumulator. +-- | 'concatMapM' with a strict accumulator. -- -- Subject to fusion -- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/conduit-1.2.4/README.md new/conduit-1.2.5/README.md --- old/conduit-1.2.4/README.md 2015-02-19 07:34:30.000000000 +0100 +++ new/conduit-1.2.5/README.md 2015-07-23 16:05:01.000000000 +0200 @@ -3,5 +3,7 @@ `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. -For a tutorial, please visit -[https://www.fpcomplete.com/user/snoyberg/library-documentation/conduit-overview](https://www.fpcomplete.com/user/snoyberg/library-documentation/conduit-overview). + +For more information about conduit in general, and how this package in +particular fits into the ecosystem, see [the conduit +homepage](https://github.com/snoyberg/conduit#readme). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/conduit-1.2.4/changelog.md new/conduit-1.2.5/changelog.md --- old/conduit-1.2.4/changelog.md 2015-02-19 07:34:30.000000000 +0100 +++ new/conduit-1.2.5/changelog.md 2015-07-23 16:05:01.000000000 +0200 @@ -1,3 +1,11 @@ +## 1.2.5 + +* mapAccum and mapAccumM should be strict in their state [#218](https://github.com/snoyberg/conduit/issues/218) + +## 1.2.4.1 + +* Some documentation improvements + ## 1.2.4 * [fuseBothMaybe](https://github.com/snoyberg/conduit/issues/199) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/conduit-1.2.4/conduit.cabal new/conduit-1.2.5/conduit.cabal --- old/conduit-1.2.4/conduit.cabal 2015-02-19 07:34:30.000000000 +0100 +++ new/conduit-1.2.5/conduit.cabal 2015-07-23 16:05:01.000000000 +0200 @@ -1,5 +1,5 @@ Name: conduit -Version: 1.2.4 +Version: 1.2.5 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>. @@ -34,8 +34,9 @@ , transformers-base >= 0.4.1 && < 0.5 , transformers >= 0.2.2 && < 0.5 , mtl - , void >= 0.5.5 , mmorph + if !impl(ghc>=7.9) + build-depends: void >= 0.5.5 ghc-options: -Wall include-dirs: .