Hello community, here is the log from the commit of package ghc-conduit-extra for openSUSE:Factory checked in at 2017-06-04 01:57:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-conduit-extra (Old) and /work/SRC/openSUSE:Factory/.ghc-conduit-extra.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-conduit-extra" Sun Jun 4 01:57:04 2017 rev:13 rq:499690 version:1.1.16 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-conduit-extra/ghc-conduit-extra.changes 2017-04-11 09:42:31.895385885 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-conduit-extra.new/ghc-conduit-extra.changes 2017-06-04 01:57:06.151311630 +0200 @@ -1,0 +2,5 @@ +Mon May 22 08:08:55 UTC 2017 - psim...@suse.com + +- Update to version 1.1.16 with cabal2obs. + +------------------------------------------------------------------- Old: ---- conduit-extra-1.1.15.tar.gz conduit-extra.cabal New: ---- conduit-extra-1.1.16.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-conduit-extra.spec ++++++ --- /var/tmp/diff_new_pack.xh5eoq/_old 2017-06-04 01:57:06.719231396 +0200 +++ /var/tmp/diff_new_pack.xh5eoq/_new 2017-06-04 01:57:06.719231396 +0200 @@ -19,14 +19,13 @@ %global pkg_name conduit-extra %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.1.15 +Version: 1.1.16 Release: 0 Summary: Batteries included conduit: adapters for common libraries License: MIT Group: Development/Languages/Other Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-async-devel BuildRequires: ghc-attoparsec-devel @@ -74,7 +73,6 @@ %prep %setup -q -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++++++ conduit-extra-1.1.15.tar.gz -> conduit-extra-1.1.16.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/conduit-extra-1.1.15/ChangeLog.md new/conduit-extra-1.1.16/ChangeLog.md --- old/conduit-extra-1.1.15/ChangeLog.md 2016-11-13 10:17:57.000000000 +0100 +++ new/conduit-extra-1.1.16/ChangeLog.md 2017-05-19 18:38:18.000000000 +0200 @@ -1,3 +1,8 @@ +## 1.1.16 + +* Add `Data.Conduit.Foldl` adapter module for the `foldl` + package. [#312](https://github.com/snoyberg/conduit/pull/312) + ## 1.1.15 * `sinkTempFile` and `sinkSystemTempFile` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/conduit-extra-1.1.15/Data/Conduit/Foldl.hs new/conduit-extra-1.1.16/Data/Conduit/Foldl.hs --- old/conduit-extra-1.1.15/Data/Conduit/Foldl.hs 1970-01-01 01:00:00.000000000 +0100 +++ new/conduit-extra-1.1.16/Data/Conduit/Foldl.hs 2017-05-19 18:38:18.000000000 +0200 @@ -0,0 +1,26 @@ +{-# LANGUAGE RankNTypes #-} +-- | Adapter module to work with the <https://hackage.haskell.org/package/foldl foldl> package. +-- +-- @since 1.1.16 +module Data.Conduit.Foldl where + +import Data.Conduit +import Control.Monad.Trans.Class (lift) +import qualified Data.Conduit.List as CL + +-- | Convert a left fold into a 'Consumer'. This function is intended +-- to be used with @purely@ from the +-- <https://hackage.haskell.org/package/foldl foldl> package. +-- +-- @since 1.1.16 +sinkFold :: Monad m => (x -> a -> x) -> x -> (x -> b) -> Consumer a m b +sinkFold combine seed extract = fmap extract (CL.fold combine seed) + +-- | Convert a monadic left fold into a 'Consumer'. This function is +-- intended to be used with @impurely@ from the +-- <https://hackage.haskell.org/package/foldl foldl> package. +-- +-- @since 1.1.16 +sinkFoldM :: Monad m => (x -> a -> m x) -> m x -> (x -> m b) -> Consumer a m b +sinkFoldM combine seed extract = + lift . extract =<< CL.foldM combine =<< lift seed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/conduit-extra-1.1.15/conduit-extra.cabal new/conduit-extra-1.1.16/conduit-extra.cabal --- old/conduit-extra-1.1.15/conduit-extra.cabal 2016-11-13 10:17:57.000000000 +0100 +++ new/conduit-extra-1.1.16/conduit-extra.cabal 2017-05-19 18:38:18.000000000 +0200 @@ -1,5 +1,5 @@ Name: conduit-extra -Version: 1.1.15 +Version: 1.1.16 Synopsis: Batteries included conduit: adapters for common libraries. Description: The conduit package itself maintains relative small dependencies. The purpose of this package is to collect commonly used utility functions wrapping other library dependencies, without depending on heavier-weight dependencies. The basic idea is that this package should only depend on haskell-platform packages and conduit. @@ -24,6 +24,7 @@ Data.Conduit.Blaze Data.Conduit.ByteString.Builder Data.Conduit.Filesystem + Data.Conduit.Foldl Data.Conduit.Lazy Data.Conduit.Network Data.Conduit.Network.UDP