Hello community,

here is the log from the commit of package ghc-pipes-bytestring for 
openSUSE:Factory checked in at 2017-07-05 23:59:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-pipes-bytestring (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-pipes-bytestring.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-pipes-bytestring"

Wed Jul  5 23:59:30 2017 rev:3 rq:506845 version:2.1.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-pipes-bytestring/ghc-pipes-bytestring.changes    
    2017-01-12 15:51:08.331308821 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-pipes-bytestring.new/ghc-pipes-bytestring.changes
   2017-07-05 23:59:31.395063053 +0200
@@ -1,0 +2,5 @@
+Mon Jun 19 20:51:53 UTC 2017 - [email protected]
+
+- Update to version 2.1.5.
+
+-------------------------------------------------------------------

Old:
----
  pipes-bytestring-2.1.4.tar.gz

New:
----
  pipes-bytestring-2.1.5.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-pipes-bytestring.spec ++++++
--- /var/tmp/diff_new_pack.W86if2/_old  2017-07-05 23:59:32.242943611 +0200
+++ /var/tmp/diff_new_pack.W86if2/_new  2017-07-05 23:59:32.246943047 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-pipes-bytestring
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %global pkg_name pipes-bytestring
 Name:           ghc-%{pkg_name}
-Version:        2.1.4
+Version:        2.1.5
 Release:        0
 Summary:        ByteString support for pipes
 License:        BSD-3-Clause

++++++ pipes-bytestring-2.1.4.tar.gz -> pipes-bytestring-2.1.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pipes-bytestring-2.1.4/pipes-bytestring.cabal 
new/pipes-bytestring-2.1.5/pipes-bytestring.cabal
--- old/pipes-bytestring-2.1.4/pipes-bytestring.cabal   2016-12-03 
02:14:52.000000000 +0100
+++ new/pipes-bytestring-2.1.5/pipes-bytestring.cabal   2017-06-15 
00:26:37.000000000 +0200
@@ -1,5 +1,5 @@
 Name: pipes-bytestring
-Version: 2.1.4
+Version: 2.1.5
 Cabal-Version: >=1.8.0.2
 Build-Type: Simple
 License: BSD3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pipes-bytestring-2.1.4/src/Pipes/ByteString.hs 
new/pipes-bytestring-2.1.5/src/Pipes/ByteString.hs
--- old/pipes-bytestring-2.1.4/src/Pipes/ByteString.hs  2016-12-03 
01:24:36.000000000 +0100
+++ new/pipes-bytestring-2.1.5/src/Pipes/ByteString.hs  2017-06-15 
00:26:37.000000000 +0200
@@ -80,6 +80,7 @@
     -- * Folds
     , toLazy
     , toLazyM
+    , toLazyM'
     , foldBytes
     , head
     , last
@@ -427,6 +428,18 @@
 toLazyM = liftM BL.fromChunks . P.toListM
 {-# INLINABLE toLazyM #-}
 
+{-| Fold an effectful 'Producer' of strict 'ByteString's into a lazy
+    'BL.ByteString' alongside the return value
+
+    Note: 'toLazyM'' is not an idiomatic use of @pipes@, but I provide it for
+    simple testing purposes.  Idiomatic @pipes@ style consumes the chunks
+    immediately as they are generated instead of loading them all into memory.
+-}
+toLazyM' :: Monad m => Producer ByteString m a -> m (BL.ByteString, a)
+toLazyM' p = do (chunks, a) <- P.toListM' p
+                return (BL.fromChunks chunks, a)
+{-# INLINABLE toLazyM' #-}
+
 {-| Reduce the stream of bytes using a strict left fold
 
     Note: It's more efficient to use folds from @Control.Foldl.ByteString@ in


Reply via email to