commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2020-10-23 15:13:49 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new.3463 (New) Package is "ghc-foldl" Fri Oct 23 15:13:49 2020 rev:15 rq:842743 version:1.4.9 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2020-09-30 19:53:35.676741970 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new.3463/ghc-foldl.changes 2020-10-23 15:13:53.210120904 +0200 @@ -1,0 +2,6 @@ +Tue Oct 6 08:56:37 UTC 2020 - psim...@suse.com + +- Update foldl to version 1.4.9 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +--- New: foldl.cabal Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.ITrvrC/_old 2020-10-23 15:13:53.762121171 +0200 +++ /var/tmp/diff_new_pack.ITrvrC/_new 2020-10-23 15:13:53.766121173 +0200 @@ -25,6 +25,7 @@ License:BSD-3-Clause 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-bytestring-devel BuildRequires: ghc-comonad-devel @@ -62,6 +63,7 @@ %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++ foldl.cabal ++ Name: foldl Version: 1.4.9 x-revision: 1 Cabal-Version: >=1.10 Build-Type: Simple License: BSD3 License-File: LICENSE Copyright: 2013 Gabriel Gonzalez Author: Gabriel Gonzalez Maintainer: gabriel...@gmail.com Bug-Reports: https://github.com/Gabriel439/Haskell-Foldl-Library/issues Synopsis: Composable, streaming, and efficient left folds Description: This library provides strict left folds that stream in constant memory, and you can combine folds using @Applicative@ style to derive new folds. Derived folds still traverse the container just once and are often as efficient as hand-written folds. Category: Control Extra-Source-Files: CHANGELOG.md README.md Source-Repository head Type: git Location: https://github.com/Gabriel439/Haskell-Foldl-Library Library HS-Source-Dirs: src Build-Depends: base >= 4.8 && < 5 , bytestring >= 0.9.2.1 && < 0.11, mwc-random >= 0.13.1.0 && < 0.16, primitive < 0.8 , text >= 0.11.2.0 && < 1.3 , transformers >= 0.2.0.0 && < 0.6 , vector >= 0.7 && < 0.13, containers >= 0.5.0.0 && < 0.7 , unordered-containers< 0.3 , hashable< 1.4 , contravariant < 1.6 , profunctors < 5.7 , semigroupoids >= 1.0 && < 5.4 , comonad >= 4.0 && < 6 if impl(ghc < 8.0) Build-Depends: semigroups >= 0.17 && < 1.20 Exposed-Modules: Control.Foldl, Control.Foldl.ByteString, Control.Foldl.Text, Control.Scanl Other-Modules: Control.Foldl.Optics Control.Foldl.Internal Control.Foldl.Util.Vector Control.Foldl.Util.MVector GHC-Options: -O2 -Wall Default-Language: Haskell2010 Benchmark benchmarks Type: exitcode-stdio-1.0 HS-Source-Dirs: bench Main-Is: benchmarks.hs Build-Depends: base, criterion, foldl GHC-Options: -O2 -Wall -rtsopts -rtsopts -with-rtsopts=-T Default-Language: Haskell2010 Test-Suite doctest Type: exitcode-stdio-1.0 HS-Source-Dirs: test Main-Is: doctest.hs Build-Depends: base, doctest >= 0.16 GHC-Options: -threaded Default-Language: Haskell2010
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2020-09-30 19:53:29 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new.4249 (New) Package is "ghc-foldl" Wed Sep 30 19:53:29 2020 rev:14 rq:838493 version:1.4.9 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2020-09-07 22:02:07.370071480 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new.4249/ghc-foldl.changes 2020-09-30 19:53:35.676741970 +0200 @@ -1,0 +2,8 @@ +Mon Sep 28 02:01:38 UTC 2020 - psim...@suse.com + +- Update foldl to version 1.4.9. + 1.4.9 + + * Implement `vector` utility more efficiently + +--- Old: foldl-1.4.8.tar.gz foldl.cabal New: foldl-1.4.9.tar.gz Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.BUqOfY/_old 2020-09-30 19:53:36.248742482 +0200 +++ /var/tmp/diff_new_pack.BUqOfY/_new 2020-09-30 19:53:36.248742482 +0200 @@ -19,13 +19,12 @@ %global pkg_name foldl %bcond_with tests Name: ghc-%{pkg_name} -Version:1.4.8 +Version:1.4.9 Release:0 Summary:Composable, streaming, and efficient left folds License:BSD-3-Clause 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-bytestring-devel BuildRequires: ghc-comonad-devel @@ -40,7 +39,6 @@ BuildRequires: ghc-text-devel BuildRequires: ghc-transformers-devel BuildRequires: ghc-unordered-containers-devel -BuildRequires: ghc-vector-builder-devel BuildRequires: ghc-vector-devel %if %{with tests} BuildRequires: ghc-doctest-devel @@ -64,7 +62,6 @@ %prep %autosetup -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++ foldl-1.4.8.tar.gz -> foldl-1.4.9.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.8/CHANGELOG.md new/foldl-1.4.9/CHANGELOG.md --- old/foldl-1.4.8/CHANGELOG.md2020-08-02 20:04:12.0 +0200 +++ new/foldl-1.4.9/CHANGELOG.md2020-09-28 03:43:47.0 +0200 @@ -1,3 +1,7 @@ +1.4.9 + +* Implement `vector` utility more efficiently + 1.4.8 * Only depend on `semigroups` for older GHC versions diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.8/foldl.cabal new/foldl-1.4.9/foldl.cabal --- old/foldl-1.4.8/foldl.cabal 2020-08-02 20:04:12.0 +0200 +++ new/foldl-1.4.9/foldl.cabal 2020-09-28 03:43:47.0 +0200 @@ -1,5 +1,5 @@ Name: foldl -Version: 1.4.8 +Version: 1.4.9 Cabal-Version: >=1.10 Build-Type: Simple License: BSD3 @@ -26,7 +26,7 @@ Build-Depends: base >= 4.8 && < 5 , bytestring >= 0.9.2.1 && < 0.11, -mwc-random >= 0.13.1.0 && < 0.15, +mwc-random >= 0.13.1.0 && < 0.16, primitive < 0.8 , text >= 0.11.2.0 && < 1.3 , transformers >= 0.2.0.0 && < 0.6 , @@ -37,8 +37,7 @@ contravariant < 1.6 , profunctors < 5.6 , semigroupoids >= 1.0 && < 5.4 , -comonad >= 4.0 && < 6 , -vector-builder < 0.4 +comonad >= 4.0 && < 6 if impl(ghc < 8.0) Build-Depends: semigroups >= 0.17 && < 1.20 @@ -50,6 +49,8 @@ Other-Modules: Control.Foldl.Optics Control.Foldl.Internal +Control.Foldl.Util.Vector +Control.Foldl.Util.MVector GHC-Options: -O2 -Wall Default-Language: Haskell2010 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.8/src/Control/Foldl/Util/MVector.hs new/foldl-1.4.9/src/Control/Foldl/Util/MVector.hs --- old/foldl-1.4.8/src/Control/Foldl/Util/MVector.hs 1970-01-01 01:00:00.0 +0100 +++ new/foldl-1.4.9/src/Control/Foldl/Util/MVector.hs 2020-09-28 03:43:47.0 +0200 @@ -0,0 +1,17 @@ +{-# LANGUAGE BangPatterns #-} +module Control.Foldl.Util.MVector +where + +import Data.Vector.Generic.Mutable +import Control.Monad.ST + + +{-# INLINE writeListInReverseOrderStartingFrom #-} +writeListInReverseOrderStartingFrom :: MVector v a => v s a -> Int -> [a] -> ST s () +writeListInReverseOrderStartingFrom v = let + loop !index list = case list of +h : t -> do + unsafeWrite v index
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2020-09-07 22:02:01 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new.3399 (New) Package is "ghc-foldl" Mon Sep 7 22:02:01 2020 rev:13 rq:832275 version:1.4.8 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2020-08-28 21:32:38.940646228 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new.3399/ghc-foldl.changes 2020-09-07 22:02:07.370071480 +0200 @@ -1,0 +2,6 @@ +Mon Aug 31 09:34:37 UTC 2020 - psim...@suse.com + +- Update foldl to version 1.4.8 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +--- Other differences: --
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2020-08-28 21:32:38 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new.3399 (New) Package is "ghc-foldl" Fri Aug 28 21:32:38 2020 rev:12 rq:829279 version:1.4.8 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2020-08-10 14:54:04.271876096 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new.3399/ghc-foldl.changes 2020-08-28 21:32:38.940646228 +0200 @@ -1,0 +2,5 @@ +Tue Aug 18 10:44:52 UTC 2020 - Peter Simons + +- Replace %setup -q with the more modern %autosetup macro. + +--- Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.mOpVRK/_old 2020-08-28 21:32:39.480646483 +0200 +++ /var/tmp/diff_new_pack.mOpVRK/_new 2020-08-28 21:32:39.484646485 +0200 @@ -63,7 +63,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep -%setup -q -n %{pkg_name}-%{version} +%autosetup -n %{pkg_name}-%{version} cp -p %{SOURCE1} %{pkg_name}.cabal %build
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2020-08-10 14:53:56 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new.3399 (New) Package is "ghc-foldl" Mon Aug 10 14:53:56 2020 rev:11 rq:824309 version:1.4.8 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2020-07-09 13:19:38.037320126 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new.3399/ghc-foldl.changes 2020-08-10 14:54:04.271876096 +0200 @@ -1,0 +2,8 @@ +Tue Aug 4 09:04:43 UTC 2020 - psim...@suse.com + +- Update foldl to version 1.4.8. + 1.4.8 + + * Only depend on `semigroups` for older GHC versions + +--- Old: foldl-1.4.7.tar.gz New: foldl-1.4.8.tar.gz foldl.cabal Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.wcCtJz/_old 2020-08-10 14:54:06.455877249 +0200 +++ /var/tmp/diff_new_pack.wcCtJz/_new 2020-08-10 14:54:06.455877249 +0200 @@ -19,12 +19,13 @@ %global pkg_name foldl %bcond_with tests Name: ghc-%{pkg_name} -Version:1.4.7 +Version:1.4.8 Release:0 Summary:Composable, streaming, and efficient left folds License:BSD-3-Clause 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-bytestring-devel BuildRequires: ghc-comonad-devel @@ -36,7 +37,6 @@ BuildRequires: ghc-profunctors-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-semigroupoids-devel -BuildRequires: ghc-semigroups-devel BuildRequires: ghc-text-devel BuildRequires: ghc-transformers-devel BuildRequires: ghc-unordered-containers-devel @@ -64,6 +64,7 @@ %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++ foldl-1.4.7.tar.gz -> foldl-1.4.8.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.7/CHANGELOG.md new/foldl-1.4.8/CHANGELOG.md --- old/foldl-1.4.7/CHANGELOG.md2020-06-19 17:47:18.0 +0200 +++ new/foldl-1.4.8/CHANGELOG.md2020-08-02 20:04:12.0 +0200 @@ -1,3 +1,7 @@ +1.4.8 + +* Only depend on `semigroups` for older GHC versions + 1.4.7 * Add `foldByKey{,Hash}Map` functions diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.7/foldl.cabal new/foldl-1.4.8/foldl.cabal --- old/foldl-1.4.7/foldl.cabal 2020-06-19 17:47:18.0 +0200 +++ new/foldl-1.4.8/foldl.cabal 2020-08-02 20:04:12.0 +0200 @@ -1,5 +1,5 @@ Name: foldl -Version: 1.4.7 +Version: 1.4.8 Cabal-Version: >=1.10 Build-Type: Simple License: BSD3 @@ -35,11 +35,13 @@ unordered-containers< 0.3 , hashable< 1.4 , contravariant < 1.6 , -semigroups >= 0.17 && < 1.20, profunctors < 5.6 , semigroupoids >= 1.0 && < 5.4 , comonad >= 4.0 && < 6 , vector-builder < 0.4 +if impl(ghc < 8.0) +Build-Depends: +semigroups >= 0.17 && < 1.20 Exposed-Modules: Control.Foldl, Control.Foldl.ByteString, ++ foldl.cabal ++ Name: foldl Version: 1.4.8 x-revision: 1 Cabal-Version: >=1.10 Build-Type: Simple License: BSD3 License-File: LICENSE Copyright: 2013 Gabriel Gonzalez Author: Gabriel Gonzalez Maintainer: gabriel...@gmail.com Bug-Reports: https://github.com/Gabriel439/Haskell-Foldl-Library/issues Synopsis: Composable, streaming, and efficient left folds Description: This library provides strict left folds that stream in constant memory, and you can combine folds using @Applicative@ style to derive new folds. Derived folds still traverse the container just once and are often as efficient as hand-written folds. Category: Control Extra-Source-Files: CHANGELOG.md README.md Source-Repository head Type: git Location: https://github.com/Gabriel439/Haskell-Foldl-Library Library HS-Source-Dirs: src Build-Depends: base >= 4.8 && < 5 , bytestring >= 0.9.2.1 && < 0.11, mwc-random >= 0.13.1.0 && < 0.16, primitive < 0.8 , text >= 0.11.2.0 && < 1.3 , transformers >= 0.2.0.0 && < 0.6 , vector >= 0.7 && < 0.13, containers >=
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2020-07-09 13:19:13 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new.3060 (New) Package is "ghc-foldl" Thu Jul 9 13:19:13 2020 rev:10 rq:819575 version:1.4.7 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2020-06-19 17:12:53.718052841 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new.3060/ghc-foldl.changes 2020-07-09 13:19:38.037320126 +0200 @@ -1,0 +2,8 @@ +Sun Jun 21 02:00:43 UTC 2020 - psim...@suse.com + +- Update foldl to version 1.4.7. + 1.4.7 + + * Add `foldByKey{,Hash}Map` functions + +--- Old: foldl-1.4.6.tar.gz New: foldl-1.4.7.tar.gz Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.tV88MH/_old 2020-07-09 13:19:39.013323211 +0200 +++ /var/tmp/diff_new_pack.tV88MH/_new 2020-07-09 13:19:39.013323211 +0200 @@ -19,7 +19,7 @@ %global pkg_name foldl %bcond_with tests Name: ghc-%{pkg_name} -Version:1.4.6 +Version:1.4.7 Release:0 Summary:Composable, streaming, and efficient left folds License:BSD-3-Clause ++ foldl-1.4.6.tar.gz -> foldl-1.4.7.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.6/CHANGELOG.md new/foldl-1.4.7/CHANGELOG.md --- old/foldl-1.4.6/CHANGELOG.md2001-09-09 03:46:40.0 +0200 +++ new/foldl-1.4.7/CHANGELOG.md2020-06-19 17:47:18.0 +0200 @@ -1,3 +1,7 @@ +1.4.7 + +* Add `foldByKey{,Hash}Map` functions + 1.4.6 * Add `nest`/`predropWhile`/`drop`/`dropM` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.6/foldl.cabal new/foldl-1.4.7/foldl.cabal --- old/foldl-1.4.6/foldl.cabal 2001-09-09 03:46:40.0 +0200 +++ new/foldl-1.4.7/foldl.cabal 2020-06-19 17:47:18.0 +0200 @@ -1,6 +1,6 @@ Name: foldl -Version: 1.4.6 -Cabal-Version: >=1.8.0.2 +Version: 1.4.7 +Cabal-Version: >=1.10 Build-Type: Simple License: BSD3 License-File: LICENSE @@ -49,6 +49,7 @@ Control.Foldl.Optics Control.Foldl.Internal GHC-Options: -O2 -Wall +Default-Language: Haskell2010 Benchmark benchmarks Type: exitcode-stdio-1.0 @@ -59,6 +60,7 @@ criterion, foldl GHC-Options: -O2 -Wall -rtsopts -rtsopts -with-rtsopts=-T +Default-Language: Haskell2010 Test-Suite doctest Type: exitcode-stdio-1.0 @@ -68,3 +70,4 @@ base, doctest >= 0.16 GHC-Options: -threaded +Default-Language: Haskell2010 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.6/src/Control/Foldl.hs new/foldl-1.4.7/src/Control/Foldl.hs --- old/foldl-1.4.6/src/Control/Foldl.hs2001-09-09 03:46:40.0 +0200 +++ new/foldl-1.4.7/src/Control/Foldl.hs2020-06-19 17:47:18.0 +0200 @@ -39,6 +39,7 @@ {-# LANGUAGE ExistentialQuantification #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE RankNTypes#-} +{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE Trustworthy #-} module Control.Foldl ( @@ -99,7 +100,9 @@ , set , hashSet , map +, foldByKeyMap , hashMap +, foldByKeyHashMap , vector , vectorM @@ -151,6 +154,7 @@ import Data.Foldable (Foldable) import Data.Functor.Identity (Identity, runIdentity) import Data.Functor.Contravariant (Contravariant(..)) +import Data.HashMap.Strict (HashMap) import Data.Map.Strict (Map, alter) import Data.Maybe (fromMaybe) import Data.Monoid hiding ((<>)) @@ -940,6 +944,28 @@ done = id {-# INLINABLE map #-} + +{- | Given a 'Fold', produces a 'Map' which applies that fold to each @a@ separated by key @k@. + +>>> fold (foldByKeyMap Control.Foldl.sum) [("a",1), ("b",2), ("b",20), ("a",10)] +fromList [("a",11),("b",22)] +-} +foldByKeyMap :: forall k a b. Ord k => Fold a b -> Fold (k, a) (Map k b) +foldByKeyMap f = case f of + Fold (step0 :: x -> a -> x) (ini0 :: x) (end0 :: x -> b) -> +let + step :: Map k x -> (k,a) -> Map k x + step mp (k,a) = Map.alter addToMap k mp where +addToMap Nothing = Just $ step0 ini0 a +addToMap (Just existing) = Just $ step0 existing a + + ini :: Map k x + ini = Map.empty + + end :: Map k x -> Map k b + end = fmap end0 +in Fold step ini end where + {-| Fold pairs into a hash-map. -} @@ -951,6 +977,27 @@ done = id {-# INLINABLE hashMap #-} +{- | Given a 'Fold', produces a 'HashMap' which applies that
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2020-06-19 17:12:53 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new.3606 (New) Package is "ghc-foldl" Fri Jun 19 17:12:53 2020 rev:9 rq:815093 version:1.4.6 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2020-01-29 13:13:13.754011822 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new.3606/ghc-foldl.changes 2020-06-19 17:12:53.718052841 +0200 @@ -1,0 +2,5 @@ +Tue Jun 16 11:14:07 UTC 2020 - Peter Simons + +- Re-generate file with latest version of spec-cleaner. + +--- Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.bw0UdI/_old 2020-06-19 17:12:54.314054835 +0200 +++ /var/tmp/diff_new_pack.bw0UdI/_new 2020-06-19 17:12:54.318054848 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-foldl # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2020-01-29 13:12:42 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new.26092 (New) Package is "ghc-foldl" Wed Jan 29 13:12:42 2020 rev:8 rq:766985 version:1.4.6 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2019-12-27 13:53:40.656667265 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new.26092/ghc-foldl.changes 2020-01-29 13:13:13.754011822 +0100 @@ -1,0 +2,8 @@ +Sat Jan 11 03:03:21 UTC 2020 - psim...@suse.com + +- Update foldl to version 1.4.6. + 1.4.6 + + * Add `nest`/`predropWhile`/`drop`/`dropM` + +--- Old: foldl-1.4.5.tar.gz foldl.cabal New: foldl-1.4.6.tar.gz Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.1UJLJE/_old 2020-01-29 13:13:14.562012235 +0100 +++ /var/tmp/diff_new_pack.1UJLJE/_new 2020-01-29 13:13:14.566012237 +0100 @@ -1,7 +1,7 @@ # # spec file for package ghc-foldl # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 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 @@ -17,14 +17,14 @@ %global pkg_name foldl +%bcond_with tests Name: ghc-%{pkg_name} -Version:1.4.5 +Version:1.4.6 Release:0 Summary:Composable, streaming, and efficient left folds License:BSD-3-Clause 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/4.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-comonad-devel @@ -42,6 +42,9 @@ BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-builder-devel BuildRequires: ghc-vector-devel +%if %{with tests} +BuildRequires: ghc-doctest-devel +%endif %description This library provides strict left folds that stream in constant memory, and you @@ -61,7 +64,6 @@ %prep %setup -q -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build @@ -69,6 +71,9 @@ %install %ghc_lib_install +%check +%cabal_test + %post devel %ghc_pkg_recache ++ foldl-1.4.5.tar.gz -> foldl-1.4.6.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.5/CHANGELOG.md new/foldl-1.4.6/CHANGELOG.md --- old/foldl-1.4.5/CHANGELOG.md2018-10-04 01:13:02.0 +0200 +++ new/foldl-1.4.6/CHANGELOG.md2001-09-09 03:46:40.0 +0200 @@ -1,3 +1,7 @@ +1.4.6 + +* Add `nest`/`predropWhile`/`drop`/`dropM` + 1.4.5 * Increase upper bound on `containers` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.5/README.md new/foldl-1.4.6/README.md --- old/foldl-1.4.5/README.md 2018-10-04 01:13:02.0 +0200 +++ new/foldl-1.4.6/README.md 2001-09-09 03:46:40.0 +0200 @@ -1,4 +1,4 @@ -# `foldl` v1.4.5 +# `foldl` Use this `foldl` library when you want to compute multiple folds over a collection in one pass over the data without space leaks. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.5/bench/benchmarks.hs new/foldl-1.4.6/bench/benchmarks.hs --- old/foldl-1.4.5/bench/benchmarks.hs 2018-10-04 01:13:02.0 +0200 +++ new/foldl-1.4.6/bench/benchmarks.hs 2001-09-09 03:46:40.0 +0200 @@ -1,3 +1,5 @@ +{-# LANGUAGE BangPatterns #-} + module Main (main) where import Control.Foldl hiding (map) @@ -5,6 +7,7 @@ import qualified Data.List import Prelude hiding (length, sum) import qualified Prelude +import qualified Data.Foldable as Foldable main :: IO () main = defaultMain @@ -36,5 +39,36 @@ , bench "Prelude.length" . whnf Prelude.length ] +, bgroup "sumAndLength" $ map ($ ns) +[ bench "naive sumAndLength" . +nf sumAndLength +, bench "foldl' sumAndLength" . +nf sumAndLength' +, bench "strict pair sumAndLength" . +nf sumAndLength_Pair +, bench "foldl sumAndLength" . +nf sumAndLength_foldl +] ] ] + + +sumAndLength :: Num a => [a] -> (a, Int) +sumAndLength xs = (Prelude.sum xs, Prelude.length xs) + +sumAndLength' :: Num
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2019-12-27 13:53:36 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new.6675 (New) Package is "ghc-foldl" Fri Dec 27 13:53:36 2019 rev:7 rq:759400 version:1.4.5 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2019-10-12 22:33:10.143245218 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new.6675/ghc-foldl.changes 2019-12-27 13:53:40.656667265 +0100 @@ -1,0 +2,5 @@ +Fri Nov 8 16:13:45 UTC 2019 - Peter Simons + +- Drop obsolete group attributes. + +--- Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.D7EF7N/_old 2019-12-27 13:53:41.120667490 +0100 +++ /var/tmp/diff_new_pack.D7EF7N/_new 2019-12-27 13:53:41.120667490 +0100 @@ -22,7 +22,6 @@ Release:0 Summary:Composable, streaming, and efficient left folds License:BSD-3-Clause -Group: Development/Libraries/Haskell 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/4.cabal#/%{pkg_name}.cabal @@ -52,7 +51,6 @@ %package devel Summary:Haskell %{pkg_name} library development files -Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version}
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2019-10-12 22:33:07 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new.2352 (New) Package is "ghc-foldl" Sat Oct 12 22:33:07 2019 rev:6 rq:737502 version:1.4.5 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2019-06-19 21:12:06.674725650 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new.2352/ghc-foldl.changes 2019-10-12 22:33:10.143245218 +0200 @@ -1,0 +2,5 @@ +Fri Oct 11 12:18:08 UTC 2019 - Peter Simons + +- Update Cabal file for more accurate build dependencies. + +--- Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.4gUUqV/_old 2019-10-12 22:33:10.731243724 +0200 +++ /var/tmp/diff_new_pack.4gUUqV/_new 2019-10-12 22:33:10.735243713 +0200 @@ -25,7 +25,7 @@ Group: Development/Libraries/Haskell 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/3.cabal#/%{pkg_name}.cabal +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/4.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-comonad-devel ++ foldl.cabal ++ --- /var/tmp/diff_new_pack.4gUUqV/_old 2019-10-12 22:33:10.763243642 +0200 +++ /var/tmp/diff_new_pack.4gUUqV/_new 2019-10-12 22:33:10.763243642 +0200 @@ -1,6 +1,6 @@ Name: foldl Version: 1.4.5 -x-revision: 3 +x-revision: 4 Cabal-Version: >=1.8.0.2 Build-Type: Simple License: BSD3 @@ -37,7 +37,7 @@ hashable< 1.4 , contravariant < 1.6 , semigroups >= 0.17 && < 1.20, -profunctors < 5.5 , +profunctors < 5.6 , semigroupoids >= 1.0 && < 5.4 , comonad >= 4.0 && < 6 , vector-builder < 0.4
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2019-06-19 21:10:34 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new.4811 (New) Package is "ghc-foldl" Wed Jun 19 21:10:34 2019 rev:5 rq:710625 version:1.4.5 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2019-05-17 23:44:18.113875289 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new.4811/ghc-foldl.changes 2019-06-19 21:12:06.674725650 +0200 @@ -1,0 +2,5 @@ +Tue Jun 11 14:29:09 UTC 2019 - Peter Simons + +- Update Cabal file for more accurate build dependencies. + +--- Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.aAGpoY/_old 2019-06-19 21:12:07.374726329 +0200 +++ /var/tmp/diff_new_pack.aAGpoY/_new 2019-06-19 21:12:07.378726333 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-foldl # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -25,7 +25,7 @@ Group: Development/Libraries/Haskell 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/2.cabal#/%{pkg_name}.cabal +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/3.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-comonad-devel ++ foldl.cabal ++ --- /var/tmp/diff_new_pack.aAGpoY/_old 2019-06-19 21:12:07.422726376 +0200 +++ /var/tmp/diff_new_pack.aAGpoY/_new 2019-06-19 21:12:07.426726380 +0200 @@ -1,6 +1,6 @@ Name: foldl Version: 1.4.5 -x-revision: 2 +x-revision: 3 Cabal-Version: >=1.8.0.2 Build-Type: Simple License: BSD3 @@ -28,7 +28,7 @@ base >= 4.8 && < 5 , bytestring >= 0.9.2.1 && < 0.11, mwc-random >= 0.13.1.0 && < 0.15, -primitive < 0.7 , +primitive < 0.8 , text >= 0.11.2.0 && < 1.3 , transformers >= 0.2.0.0 && < 0.6 , vector >= 0.7 && < 0.13,
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2019-05-17 23:44:16 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new.5148 (New) Package is "ghc-foldl" Fri May 17 23:44:16 2019 rev:4 rq:703651 version:1.4.5 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2018-10-25 08:17:11.860048283 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new.5148/ghc-foldl.changes 2019-05-17 23:44:18.113875289 +0200 @@ -1,0 +2,5 @@ +Fri May 17 06:55:31 UTC 2019 - Peter Simons + +- Update Cabal file for more accurate build dependencies. + +--- New: foldl.cabal Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.X4p9hV/_old 2019-05-17 23:44:18.781874922 +0200 +++ /var/tmp/diff_new_pack.X4p9hV/_new 2019-05-17 23:44:18.781874922 +0200 @@ -25,6 +25,7 @@ Group: Development/Libraries/Haskell 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/2.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-comonad-devel @@ -62,6 +63,7 @@ %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++ foldl.cabal ++ Name: foldl Version: 1.4.5 x-revision: 2 Cabal-Version: >=1.8.0.2 Build-Type: Simple License: BSD3 License-File: LICENSE Copyright: 2013 Gabriel Gonzalez Author: Gabriel Gonzalez Maintainer: gabriel...@gmail.com Bug-Reports: https://github.com/Gabriel439/Haskell-Foldl-Library/issues Synopsis: Composable, streaming, and efficient left folds Description: This library provides strict left folds that stream in constant memory, and you can combine folds using @Applicative@ style to derive new folds. Derived folds still traverse the container just once and are often as efficient as hand-written folds. Category: Control Extra-Source-Files: CHANGELOG.md README.md Source-Repository head Type: git Location: https://github.com/Gabriel439/Haskell-Foldl-Library Library HS-Source-Dirs: src Build-Depends: base >= 4.8 && < 5 , bytestring >= 0.9.2.1 && < 0.11, mwc-random >= 0.13.1.0 && < 0.15, primitive < 0.7 , text >= 0.11.2.0 && < 1.3 , transformers >= 0.2.0.0 && < 0.6 , vector >= 0.7 && < 0.13, containers >= 0.5.0.0 && < 0.7 , unordered-containers< 0.3 , hashable< 1.4 , contravariant < 1.6 , semigroups >= 0.17 && < 1.20, profunctors < 5.5 , semigroupoids >= 1.0 && < 5.4 , comonad >= 4.0 && < 6 , vector-builder < 0.4 Exposed-Modules: Control.Foldl, Control.Foldl.ByteString, Control.Foldl.Text, Control.Scanl Other-Modules: Control.Foldl.Optics Control.Foldl.Internal GHC-Options: -O2 -Wall Benchmark benchmarks Type: exitcode-stdio-1.0 HS-Source-Dirs: bench Main-Is: benchmarks.hs Build-Depends: base, criterion, foldl GHC-Options: -O2 -Wall -rtsopts
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2018-10-25 08:16:10 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new (New) Package is "ghc-foldl" Thu Oct 25 08:16:10 2018 rev:3 rq:642858 version:1.4.5 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2018-08-20 16:20:12.820889643 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new/ghc-foldl.changes 2018-10-25 08:17:11.860048283 +0200 @@ -1,0 +2,14 @@ +Thu Oct 4 09:42:54 UTC 2018 - psim...@suse.com + +- Update foldl to version 1.4.5. + 1.4.5 + + * Increase upper bound on `containers` + * Add `either`/`eitherM` + + 1.4.4 + + * Increase lower bound on `base` + * Change `mean` to be more numerically stable + +--- Old: foldl-1.4.3.tar.gz New: foldl-1.4.5.tar.gz Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.6HFh64/_old 2018-10-25 08:17:12.532047990 +0200 +++ /var/tmp/diff_new_pack.6HFh64/_new 2018-10-25 08:17:12.536047989 +0200 @@ -12,13 +12,13 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %global pkg_name foldl Name: ghc-%{pkg_name} -Version:1.4.3 +Version:1.4.5 Release:0 Summary:Composable, streaming, and efficient left folds License:BSD-3-Clause ++ foldl-1.4.3.tar.gz -> foldl-1.4.5.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.3/CHANGELOG.md new/foldl-1.4.5/CHANGELOG.md --- old/foldl-1.4.3/CHANGELOG.md2018-08-04 17:04:07.0 +0200 +++ new/foldl-1.4.5/CHANGELOG.md2018-10-04 01:13:02.0 +0200 @@ -1,3 +1,13 @@ +1.4.5 + +* Increase upper bound on `containers` +* Add `either`/`eitherM` + +1.4.4 + +* Increase lower bound on `base` +* Change `mean` to be more numerically stable + 1.4.3 * Add `Control.Scanl.scanr` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.3/README.md new/foldl-1.4.5/README.md --- old/foldl-1.4.3/README.md 2018-08-04 17:04:07.0 +0200 +++ new/foldl-1.4.5/README.md 2018-10-04 01:13:02.0 +0200 @@ -1,4 +1,4 @@ -# `foldl` v1.4.3 +# `foldl` v1.4.5 Use this `foldl` library when you want to compute multiple folds over a collection in one pass over the data without space leaks. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.3/foldl.cabal new/foldl-1.4.5/foldl.cabal --- old/foldl-1.4.3/foldl.cabal 2018-08-04 17:04:07.0 +0200 +++ new/foldl-1.4.5/foldl.cabal 2018-10-04 01:13:02.0 +0200 @@ -1,5 +1,5 @@ Name: foldl -Version: 1.4.3 +Version: 1.4.5 Cabal-Version: >=1.8.0.2 Build-Type: Simple License: BSD3 @@ -24,14 +24,14 @@ Library HS-Source-Dirs: src Build-Depends: -base >= 4.5 && < 5 , +base >= 4.8 && < 5 , bytestring >= 0.9.2.1 && < 0.11, mwc-random >= 0.13.1.0 && < 0.15, primitive < 0.7 , text >= 0.11.2.0 && < 1.3 , transformers >= 0.2.0.0 && < 0.6 , vector >= 0.7 && < 0.13, -containers >= 0.5.0.0 && < 0.6 , +containers >= 0.5.0.0 && < 0.7 , unordered-containers< 0.3 , hashable< 1.3 , contravariant < 1.6 , @@ -46,6 +46,7 @@ Control.Foldl.Text, Control.Scanl Other-Modules: +Control.Foldl.Optics Control.Foldl.Internal GHC-Options: -O2 -Wall diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.3/src/Control/Foldl/Optics.hs new/foldl-1.4.5/src/Control/Foldl/Optics.hs --- old/foldl-1.4.3/src/Control/Foldl/Optics.hs 1970-01-01 01:00:00.0 +0100 +++ new/foldl-1.4.5/src/Control/Foldl/Optics.hs 2018-10-04 01:13:02.0 +0200 @@ -0,0 +1,21 @@ +{-# LANGUAGE RankNTypes #-} +module Control.Foldl.Optics where + +import Data.Profunctor +import Control.Applicative + +type Prism s t a b = forall p f. (Choice p, Applicative f) => p a (f b) -> p s (f t) + +type Prism' s a = Prism s s a a + +prism :: (b -> t) -> (s -> Either t a) -> Prism s t a b +prism bt seta = dimap seta (either pure (fmap bt)) . right' +{-# INLINE prism #-} + +_Left :: Prism (Either a c) (Either b c) a b +_Left = prism Left
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2018-08-20 16:20:07 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new (New) Package is "ghc-foldl" Mon Aug 20 16:20:07 2018 rev:2 rq:630363 version:1.4.3 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2018-07-25 16:08:15.669346790 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new/ghc-foldl.changes 2018-08-20 16:20:12.820889643 +0200 @@ -1,0 +2,9 @@ +Fri Aug 17 09:43:26 UTC 2018 - psim...@suse.com + +- Update foldl to version 1.4.3. + 1.4.3 + + * Add `Control.Scanl.scanr` + * Increase upper bound on `mwc-random` + +--- Old: foldl-1.4.2.tar.gz New: foldl-1.4.3.tar.gz Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.o8rxcc/_old 2018-08-20 16:20:13.380890434 +0200 +++ /var/tmp/diff_new_pack.o8rxcc/_new 2018-08-20 16:20:13.380890434 +0200 @@ -18,7 +18,7 @@ %global pkg_name foldl Name: ghc-%{pkg_name} -Version:1.4.2 +Version:1.4.3 Release:0 Summary:Composable, streaming, and efficient left folds License:BSD-3-Clause ++ foldl-1.4.2.tar.gz -> foldl-1.4.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.2/CHANGELOG.md new/foldl-1.4.3/CHANGELOG.md --- old/foldl-1.4.2/CHANGELOG.md2018-07-04 04:52:30.0 +0200 +++ new/foldl-1.4.3/CHANGELOG.md2018-08-04 17:04:07.0 +0200 @@ -1,3 +1,8 @@ +1.4.3 + +* Add `Control.Scanl.scanr` +* Increase upper bound on `mwc-random` + 1.4.2 * Add `Semigroupoid` instance for `Fold` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.2/README.md new/foldl-1.4.3/README.md --- old/foldl-1.4.2/README.md 2018-07-04 04:52:30.0 +0200 +++ new/foldl-1.4.3/README.md 2018-08-04 17:04:07.0 +0200 @@ -1,4 +1,4 @@ -# `foldl` v1.4.2 +# `foldl` v1.4.3 Use this `foldl` library when you want to compute multiple folds over a collection in one pass over the data without space leaks. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.2/foldl.cabal new/foldl-1.4.3/foldl.cabal --- old/foldl-1.4.2/foldl.cabal 2018-07-04 04:52:30.0 +0200 +++ new/foldl-1.4.3/foldl.cabal 2018-08-04 17:04:07.0 +0200 @@ -1,5 +1,5 @@ Name: foldl -Version: 1.4.2 +Version: 1.4.3 Cabal-Version: >=1.8.0.2 Build-Type: Simple License: BSD3 @@ -26,7 +26,7 @@ Build-Depends: base >= 4.5 && < 5 , bytestring >= 0.9.2.1 && < 0.11, -mwc-random >= 0.13.1.0 && < 0.14, +mwc-random >= 0.13.1.0 && < 0.15, primitive < 0.7 , text >= 0.11.2.0 && < 1.3 , transformers >= 0.2.0.0 && < 0.6 , diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.4.2/src/Control/Scanl.hs new/foldl-1.4.3/src/Control/Scanl.hs --- old/foldl-1.4.2/src/Control/Scanl.hs2018-07-04 04:52:30.0 +0200 +++ new/foldl-1.4.3/src/Control/Scanl.hs2018-08-04 17:04:07.0 +0200 @@ -5,10 +5,11 @@ >>> import qualified Control.Scanl as SL -Use 'scan' to apply a 'Fold' to a list: +Use 'scan' to apply a 'Fold' to a list (or other 'Traversable' structures) from left to right, +and 'scanr' to do so from right to left. -} -{-# LANGUAGE BangPatterns #-} +{-# LANGUAGE CPP #-} {-# LANGUAGE ExistentialQuantification #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE RankNTypes#-} @@ -22,6 +23,7 @@ -- * Scanning , scan , scanM +, scanr , prescan , postscan @@ -54,7 +56,11 @@ import Data.Semigroup (Semigroup(..)) import Data.Traversable import Data.Tuple (swap) -import Prelude hiding ((.), id) +import Prelude hiding ((.), id, scanr) + +#if MIN_VERSION_base(4, 7, 0) +import Data.Coerce +#endif --import qualified Control.Foldl as L @@ -365,6 +371,12 @@ scan (Scan step begin) as = fst $ runState (traverse step as) begin {-# INLINE scan #-} +-- | Like 'scan' but start scanning from the right +scanr :: Traversable t => Scan a b -> t a -> t b +scanr (Scan step begin) as = + fst (runReverseState (traverse (ReverseState #. runState . step) as) begin) +{-# INLINE scanr #-} + -- | Like 'scan' but monadic scanM :: (Traversable t, Monad m) => ScanM m a b -> t a -> m (t b) scanM (ScanM step begin) as = fmap fst $ runStateT (traverse step as) =<< begin
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2017-09-15 21:40:12 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new (New) Package is "ghc-foldl" Fri Sep 15 21:40:12 2017 rev:8 rq:524530 version:1.2.5 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2017-06-04 01:57:20.725252679 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new/ghc-foldl.changes 2017-09-15 21:40:13.371342850 +0200 @@ -1,0 +2,5 @@ +Thu Aug 3 15:38:38 UTC 2017 - psim...@suse.com + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +--- Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.AN67N4/_old 2017-09-15 21:40:14.395198595 +0200 +++ /var/tmp/diff_new_pack.AN67N4/_new 2017-09-15 21:40:14.403197468 +0200 @@ -22,8 +22,8 @@ Release:0 Summary:Composable, streaming, and efficient left folds License:BSD-3-Clause -Group: Development/Languages/Other -Url:https://hackage.haskell.org/package/%{pkg_name} +Group: Development/Libraries/Haskell +URL:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-bytestring-devel @@ -39,7 +39,6 @@ BuildRequires: ghc-transformers-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This library provides strict left folds that stream in constant memory, and you @@ -49,7 +48,7 @@ %package devel Summary:Haskell %{pkg_name} library development files -Group: Development/Libraries/Other +Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} @@ -74,11 +73,9 @@ %ghc_pkg_recache %files -f %{name}.files -%defattr(-,root,root,-) %doc LICENSE %files devel -f %{name}-devel.files -%defattr(-,root,root,-) %doc CHANGELOG.md README.md %changelog
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2017-06-04 01:57:18 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new (New) Package is "ghc-foldl" Sun Jun 4 01:57:18 2017 rev:7 rq:499696 version:1.2.5 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2017-04-11 09:42:35.506875714 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new/ghc-foldl.changes 2017-06-04 01:57:20.725252679 +0200 @@ -1,0 +2,5 @@ +Thu May 18 09:52:23 UTC 2017 - psim...@suse.com + +- Update to version 1.2.5 with cabal2obs. + +--- Old: foldl-1.2.4.tar.gz New: foldl-1.2.5.tar.gz Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.QVLjs0/_old 2017-06-04 01:57:21.261176966 +0200 +++ /var/tmp/diff_new_pack.QVLjs0/_new 2017-06-04 01:57:21.265176401 +0200 @@ -18,7 +18,7 @@ %global pkg_name foldl Name: ghc-%{pkg_name} -Version:1.2.4 +Version:1.2.5 Release:0 Summary:Composable, streaming, and efficient left folds License:BSD-3-Clause @@ -30,12 +30,14 @@ BuildRequires: ghc-comonad-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-contravariant-devel +BuildRequires: ghc-hashable-devel BuildRequires: ghc-mwc-random-devel BuildRequires: ghc-primitive-devel BuildRequires: ghc-profunctors-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-text-devel BuildRequires: ghc-transformers-devel +BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build ++ foldl-1.2.4.tar.gz -> foldl-1.2.5.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.2.4/CHANGELOG.md new/foldl-1.2.5/CHANGELOG.md --- old/foldl-1.2.4/CHANGELOG.md2017-03-25 05:01:04.0 +0100 +++ new/foldl-1.2.5/CHANGELOG.md2017-05-01 19:04:49.0 +0200 @@ -1,3 +1,17 @@ +1.2.5 + +* Add support for folding new containers: `hashSet`, `map`, and `hashMap` +* Add `prescan`/`postscan` which generalize `scan` to `Traversable` types + +1.2.4 + +* Add `lazy` folds for `Text` and `ByteString` +* Documentation fixes and improvements + +1.2.3 + +* Add `lookup` + 1.2.2 * Add numerically stable `mean`, `variance`, and `std` folds diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.2.4/README.md new/foldl-1.2.5/README.md --- old/foldl-1.2.4/README.md 2017-03-25 05:01:04.0 +0100 +++ new/foldl-1.2.5/README.md 2017-05-01 19:04:49.0 +0200 @@ -1,4 +1,4 @@ -# `foldl` v1.2.4 +# `foldl` v1.2.5 Use this `foldl` library when you want to compute multiple folds over a collection in one pass over the data without space leaks. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.2.4/bench/benchmarks.hs new/foldl-1.2.5/bench/benchmarks.hs --- old/foldl-1.2.4/bench/benchmarks.hs 2017-03-25 05:01:04.0 +0100 +++ new/foldl-1.2.5/bench/benchmarks.hs 2017-05-01 19:04:49.0 +0200 @@ -1,6 +1,6 @@ module Main (main) where -import Control.Foldl +import Control.Foldl hiding (map) import Criterion.Main import qualified Data.List import Prelude hiding (length, sum) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.2.4/foldl.cabal new/foldl-1.2.5/foldl.cabal --- old/foldl-1.2.4/foldl.cabal 2017-03-25 05:01:04.0 +0100 +++ new/foldl-1.2.5/foldl.cabal 2017-05-01 19:04:49.0 +0200 @@ -1,5 +1,5 @@ Name: foldl -Version: 1.2.4 +Version: 1.2.5 Cabal-Version: >=1.8.0.2 Build-Type: Simple License: BSD3 @@ -33,6 +33,8 @@ transformers >= 0.2.0.0 && < 0.6 , vector >= 0.7 && < 0.13, containers < 0.6 , +unordered-containers< 0.3 , +hashable< 1.3 , contravariant < 1.5 , profunctors < 5.3 , comonad >= 4.0 && < 6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.2.4/src/Control/Foldl.hs new/foldl-1.2.5/src/Control/Foldl.hs --- old/foldl-1.2.4/src/Control/Foldl.hs2017-03-25 05:01:04.0 +0100 +++ new/foldl-1.2.5/src/Control/Foldl.hs2017-05-01 19:04:49.0 +0200 @@ -35,6 +35,7 @@ executables that use this library to further improve performance. -} +{-# LANGUAGE CPP #-} {-# LANGUAGE ExistentialQuantification #-} {-# LANGUAGE
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2017-04-11 09:42:32 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new (New) Package is "ghc-foldl" Tue Apr 11 09:42:32 2017 rev:6 rq:485127 version:1.2.4 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2017-03-20 17:06:24.564585668 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new/ghc-foldl.changes 2017-04-11 09:42:35.506875714 +0200 @@ -1,0 +2,5 @@ +Mon Mar 27 12:38:54 UTC 2017 - psim...@suse.com + +- Update to version 1.2.4 with cabal2obs. + +--- Old: foldl-1.2.3.tar.gz New: foldl-1.2.4.tar.gz Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.mO3UN9/_old 2017-04-11 09:42:37.022661589 +0200 +++ /var/tmp/diff_new_pack.mO3UN9/_new 2017-04-11 09:42:37.026661025 +0200 @@ -18,7 +18,7 @@ %global pkg_name foldl Name: ghc-%{pkg_name} -Version:1.2.3 +Version:1.2.4 Release:0 Summary:Composable, streaming, and efficient left folds License:BSD-3-Clause ++ foldl-1.2.3.tar.gz -> foldl-1.2.4.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.2.3/README.md new/foldl-1.2.4/README.md --- old/foldl-1.2.3/README.md 2017-01-08 14:21:41.0 +0100 +++ new/foldl-1.2.4/README.md 2017-03-25 05:01:04.0 +0100 @@ -1,4 +1,4 @@ -# `foldl` v1.2.3 +# `foldl` v1.2.4 Use this `foldl` library when you want to compute multiple folds over a collection in one pass over the data without space leaks. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.2.3/foldl.cabal new/foldl-1.2.4/foldl.cabal --- old/foldl-1.2.3/foldl.cabal 2017-01-08 14:21:45.0 +0100 +++ new/foldl-1.2.4/foldl.cabal 2017-03-25 05:01:04.0 +0100 @@ -1,5 +1,5 @@ Name: foldl -Version: 1.2.3 +Version: 1.2.4 Cabal-Version: >=1.8.0.2 Build-Type: Simple License: BSD3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.2.3/src/Control/Foldl/ByteString.hs new/foldl-1.2.4/src/Control/Foldl/ByteString.hs --- old/foldl-1.2.3/src/Control/Foldl/ByteString.hs 2016-12-23 19:01:15.0 +0100 +++ new/foldl-1.2.4/src/Control/Foldl/ByteString.hs 2017-03-25 05:01:04.0 +0100 @@ -21,6 +21,7 @@ , elemIndex , findIndex , count +, lazy -- * Re-exports -- $reexports @@ -30,25 +31,30 @@ ) where import Control.Foldl (Fold, FoldM) -import Control.Foldl.Internal (Maybe'(..), lazy, strict, Either'(..), hush) -import qualified Control.Foldl as L +import Control.Foldl.Internal (Maybe'(..), strict, Either'(..), hush) import Data.ByteString (ByteString) -import qualified Data.ByteString as B -import qualified Data.ByteString.Lazy.Internal as Lazy -import qualified Data.ByteString.Unsafe as BU import Data.Word (Word8) import Prelude hiding ( head, last, null, length, any, all, maximum, minimum, elem, notElem ) +import qualified Control.Foldl +import qualified Control.Foldl.Internal +import qualified Data.ByteString +import qualified Data.ByteString.Lazy.Internal +import qualified Data.ByteString.Unsafe +import qualified Data.ByteString.Lazy + -- | Apply a strict left 'Fold' to a lazy bytestring -fold :: Fold ByteString a -> Lazy.ByteString -> a -fold (L.Fold step begin done) as = done (Lazy.foldlChunks step begin as) +fold :: Fold ByteString a -> Data.ByteString.Lazy.ByteString -> a +fold (Control.Foldl.Fold step begin done) as = +done (Data.ByteString.Lazy.Internal.foldlChunks step begin as) {-# INLINABLE fold #-} -- | Apply a strict monadic left 'FoldM' to a lazy bytestring -foldM :: Monad m => FoldM m ByteString a -> Lazy.ByteString -> m a -foldM (L.FoldM step begin done) as = do -x <- Lazy.foldlChunks step' begin as +foldM +:: Monad m => FoldM m ByteString a -> Data.ByteString.Lazy.ByteString -> m a +foldM (Control.Foldl.FoldM step begin done) as = do +x <- Data.ByteString.Lazy.Internal.foldlChunks step' begin as done x where step' mx bs = do @@ -60,77 +66,81 @@ empty -} head :: Fold ByteString (Maybe Word8) -head = L.Fold step Nothing' lazy +head = Control.Foldl.Fold step Nothing' Control.Foldl.Internal.lazy where step mw8 bs = -if B.null bs +if Data.ByteString.null bs then mw8 else case mw8 of Just' _ -> mw8 -Nothing' -> Just' (BU.unsafeHead bs) +Nothing' -> Just' (Data.ByteString.Unsafe.unsafeHead bs) {-#
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2017-03-20 17:06:23 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new (New) Package is "ghc-foldl" Mon Mar 20 17:06:23 2017 rev:5 rq:453297 version:1.2.3 Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2016-07-21 08:09:57.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new/ghc-foldl.changes 2017-03-20 17:06:24.564585668 +0100 @@ -1,0 +2,10 @@ +Wed Jan 18 09:00:19 UTC 2017 - psim...@suse.com + +- Update to version 1.2.3 with cabal2obs. + +--- +Sun Jan 8 21:14:05 UTC 2017 - psim...@suse.com + +- Update to version 1.2.2 with cabal2obs. + +--- Old: foldl-1.2.1.tar.gz New: foldl-1.2.3.tar.gz Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.ejBwk5/_old 2017-03-20 17:06:25.416465383 +0100 +++ /var/tmp/diff_new_pack.ejBwk5/_new 2017-03-20 17:06:25.424464253 +0100 @@ -1,7 +1,7 @@ # # spec file for package ghc-foldl # -# 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,15 +18,14 @@ %global pkg_name foldl Name: ghc-%{pkg_name} -Version:1.2.1 +Version:1.2.3 Release:0 Summary:Composable, streaming, and efficient left folds License:BSD-3-Clause -Group: System/Libraries +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 BuildRequires: ghc-Cabal-devel -# Begin cabal-rpm deps: BuildRequires: ghc-bytestring-devel BuildRequires: ghc-comonad-devel BuildRequires: ghc-containers-devel @@ -39,7 +38,6 @@ BuildRequires: ghc-transformers-devel BuildRequires: ghc-vector-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build -# End cabal-rpm deps %description This library provides strict left folds that stream in constant memory, and you @@ -61,15 +59,12 @@ %prep %setup -q -n %{pkg_name}-%{version} - %build %ghc_lib_build - %install %ghc_lib_install - %post devel %ghc_pkg_recache @@ -82,5 +77,6 @@ %files devel -f %{name}-devel.files %defattr(-,root,root,-) +%doc CHANGELOG.md README.md %changelog ++ foldl-1.2.1.tar.gz -> foldl-1.2.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.2.1/CHANGELOG.md new/foldl-1.2.3/CHANGELOG.md --- old/foldl-1.2.1/CHANGELOG.md1970-01-01 01:00:00.0 +0100 +++ new/foldl-1.2.3/CHANGELOG.md2017-01-01 01:23:55.0 +0100 @@ -0,0 +1,103 @@ +1.2.2 + +* Add numerically stable `mean`, `variance`, and `std` folds +* Add `Control.Foldl.{Text,ByteString}.foldM` +* Add `foldOver`/`foldOverM` + +1.2.1 + +* Performance improvements +* Re-export `filtered` + +1.2.0 + +* Breaking change: Fix `handles` to fold things in the correct order (was + previously folding things backwards and also leaking space as a result). No + change to behavior of `handlesM`, which was folding things in the right order +* Breaking change: Change the `Monoid` used by `Handler`/`HandlerM` +* Add `folded` + +1.1.6 + +* Add `maximumBy` and `minimumBy` + +1.1.5 + +* Increase lower bound on `base` from `< 4` to `< 4.5` + +1.1.4 + +* Increase upper bound on `comonad` from `< 5` to `< 6` + +1.1.3 + +* Increase upper bound on `profunctors` from `< 5.2` to `< 5.3` +* Add `mapM_`, `hoists`, `purely`, and `impurely` + +1.1.2 + +* Add `lastN`, `randomN`, `sink`, and `duplicateM` +* Add `Comonad` instance for `Fold` +* Add `Profunctor` instance for `FoldM` + +1.1.1 + +* Increase upper bound on `vector` from `< 0.11` to `< 0.12` + +1.1.0 + +* Breaking change: Rename `pretraverse`/`pretraverseM` to `handles`/`handlesM` +* Add `Handler` +* Export `EndoM` + +1.0.11 + +* Add `Profunctor` instance for `Fold` + +1.0.10 + +* Add `random` and `_Fold1` + +1.0.9 + +* Increase upper bound on `primitive` from `< 0.6` to `< 0.7` + +1.0.8 + +* Add `revList` + +1.0.7 + +* Add `Num` and `Fractional` instances for `Fold`/`FoldM` +* Add `count` fold for `Text` and `ByteString` + +1.0.6 + +* Add `pretraverse` and `pretraverseM` + +1.0.5 + +* Add `lastDef` + +1.0.4 + +* Increase upper bounds on `transformers` from `< 0.4` to `< 0.6` +* Add `nub`, `eqNub`, and `set` +
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2016-07-21 08:09:56 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new (New) Package is "ghc-foldl" Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2016-05-31 12:25:03.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new/ghc-foldl.changes 2016-07-21 08:09:57.0 +0200 @@ -1,0 +2,5 @@ +Sun Jul 10 17:02:37 UTC 2016 - psim...@suse.com + +- Update to version 1.2.1 revision 0 with cabal2obs. + +--- Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.83KolP/_old 2016-07-21 08:09:58.0 +0200 +++ /var/tmp/diff_new_pack.83KolP/_new 2016-07-21 08:09:58.0 +0200 @@ -15,21 +15,17 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%global pkg_name foldl -Name: ghc-foldl +%global pkg_name foldl +Name: ghc-%{pkg_name} Version:1.2.1 Release:0 Summary:Composable, streaming, and efficient left folds -Group: System/Libraries - License:BSD-3-Clause +Group: System/Libraries Url:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build - BuildRequires: ghc-Cabal-devel -BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-bytestring-devel BuildRequires: ghc-comonad-devel @@ -38,9 +34,11 @@ BuildRequires: ghc-mwc-random-devel BuildRequires: ghc-primitive-devel BuildRequires: ghc-profunctors-devel +BuildRequires: ghc-rpm-macros BuildRequires: ghc-text-devel BuildRequires: ghc-transformers-devel BuildRequires: ghc-vector-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build # End cabal-rpm deps %description @@ -49,19 +47,17 @@ Derived folds still traverse the container just once and are often as efficient as hand-written folds. - %package devel Summary:Haskell %{pkg_name} library development files Group: Development/Libraries/Other +Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} -Requires: %{name} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. - %prep %setup -q -n %{pkg_name}-%{version} @@ -77,18 +73,14 @@ %post devel %ghc_pkg_recache - %postun devel %ghc_pkg_recache - %files -f %{name}.files %defattr(-,root,root,-) %doc LICENSE - %files devel -f %{name}-devel.files %defattr(-,root,root,-) - %changelog
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2016-05-31 12:25:03 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new (New) Package is "ghc-foldl" Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2016-03-16 10:36:36.0 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new/ghc-foldl.changes 2016-05-31 12:25:03.0 +0200 @@ -1,0 +2,10 @@ +Mon May 30 09:50:26 UTC 2016 - mimi...@gmail.com + +- update to 1.2.1 + +--- +Mon Apr 4 07:38:46 UTC 2016 - mimi...@gmail.com + +- update to 1.2.0 + +--- Old: foldl-1.1.6.tar.gz New: foldl-1.2.1.tar.gz Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.JWW5OY/_old 2016-05-31 12:25:04.0 +0200 +++ /var/tmp/diff_new_pack.JWW5OY/_new 2016-05-31 12:25:04.0 +0200 @@ -18,7 +18,7 @@ %global pkg_name foldl Name: ghc-foldl -Version:1.1.6 +Version:1.2.1 Release:0 Summary:Composable, streaming, and efficient left folds Group: System/Libraries @@ -34,6 +34,7 @@ BuildRequires: ghc-bytestring-devel BuildRequires: ghc-comonad-devel BuildRequires: ghc-containers-devel +BuildRequires: ghc-contravariant-devel BuildRequires: ghc-mwc-random-devel BuildRequires: ghc-primitive-devel BuildRequires: ghc-profunctors-devel ++ foldl-1.1.6.tar.gz -> foldl-1.2.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.1.6/foldl.cabal new/foldl-1.2.1/foldl.cabal --- old/foldl-1.1.6/foldl.cabal 2016-03-12 21:01:49.0 +0100 +++ new/foldl-1.2.1/foldl.cabal 2016-05-28 08:46:25.0 +0200 @@ -1,5 +1,5 @@ Name: foldl -Version: 1.1.6 +Version: 1.2.1 Cabal-Version: >=1.8.0.2 Build-Type: Simple License: BSD3 @@ -7,6 +7,7 @@ Copyright: 2013 Gabriel Gonzalez Author: Gabriel Gonzalez Maintainer: gabriel...@gmail.com +Tested-With: GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.2, GHC == 8.0.1 Bug-Reports: https://github.com/Gabriel439/Haskell-Foldl-Library/issues Synopsis: Composable, streaming, and efficient left folds Description: This library provides strict left folds that stream in constant @@ -26,9 +27,10 @@ mwc-random >= 0.13.1.0 && < 0.14, primitive < 0.7 , text >= 0.11.2.0 && < 1.3 , -transformers >= 0.2.0.0 && < 0.5 , +transformers >= 0.2.0.0 && < 0.6 , vector >= 0.7 && < 0.12, containers < 0.6 , +contravariant < 1.5 , profunctors < 5.3 , comonad >= 4.0 && < 6 Exposed-Modules: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.1.6/src/Control/Foldl.hs new/foldl-1.2.1/src/Control/Foldl.hs --- old/foldl-1.1.6/src/Control/Foldl.hs2016-03-12 21:01:49.0 +0100 +++ new/foldl-1.2.1/src/Control/Foldl.hs2016-05-28 08:22:59.0 +0200 @@ -19,7 +19,7 @@ Taking the sum, the sum of squares, ..., upto the sum of x^5 >>> import Data.Traversable ->>> let powerSums = sequenceA [premap (^n) L.sum | n <- [1..5]] +>>> let powerSums = sequenceA [L.premap (^n) L.sum | n <- [1..5]] >>> L.fold powerSums [1..10] [55,385,3025,25333,220825] @@ -108,6 +108,8 @@ , EndoM(..) , HandlerM , handlesM +, folded +, filtered -- * Re-exports -- $reexports @@ -118,12 +120,12 @@ import Control.Applicative import Control.Foldl.Internal (Maybe'(..), lazy, Either'(..), hush) -import Control.Monad ((>=>)) +import Control.Monad ((<=<)) import Control.Monad.Primitive (PrimMonad, RealWorld) import Control.Comonad import Data.Foldable (Foldable) -import Data.Functor.Constant (Constant(Constant, getConstant)) import Data.Functor.Identity (Identity, runIdentity) +import Data.Functor.Contravariant (Contravariant(..)) import Data.Monoid import Data.Profunctor import Data.Sequence ((|>)) @@ -171,7 +173,7 @@ instance Functor (Fold a) where fmap f (Fold step begin done) = Fold step begin (f . done) -{-# INLINABLE fmap #-} +{-# INLINE fmap #-} instance Profunctor Fold where lmap = premap @@ -186,14 +188,14 @@ instance Applicative (Fold a) where pure b= Fold (\() _ -> ()) () (\() -> b) -{-# INLINABLE pure #-} +{-# INLINE pure #-} (Fold stepL beginL doneL) <*> (Fold stepR beginR doneR) = let step (Pair xL xR) a = Pair (stepL xL a) (stepR xR a)
commit ghc-foldl for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-foldl for openSUSE:Factory checked in at 2016-03-16 10:36:17 Comparing /work/SRC/openSUSE:Factory/ghc-foldl (Old) and /work/SRC/openSUSE:Factory/.ghc-foldl.new (New) Package is "ghc-foldl" Changes: --- /work/SRC/openSUSE:Factory/ghc-foldl/ghc-foldl.changes 2016-02-09 13:32:00.0 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-foldl.new/ghc-foldl.changes 2016-03-16 10:36:36.0 +0100 @@ -1,0 +2,5 @@ +Sun Mar 13 12:05:26 UTC 2016 - mimi...@gmail.com + +- update to 1.1.6 + +--- Old: foldl-1.1.5.tar.gz New: foldl-1.1.6.tar.gz Other differences: -- ++ ghc-foldl.spec ++ --- /var/tmp/diff_new_pack.I2Fti2/_old 2016-03-16 10:36:37.0 +0100 +++ /var/tmp/diff_new_pack.I2Fti2/_new 2016-03-16 10:36:37.0 +0100 @@ -18,7 +18,7 @@ %global pkg_name foldl Name: ghc-foldl -Version:1.1.5 +Version:1.1.6 Release:0 Summary:Composable, streaming, and efficient left folds Group: System/Libraries ++ foldl-1.1.5.tar.gz -> foldl-1.1.6.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.1.5/foldl.cabal new/foldl-1.1.6/foldl.cabal --- old/foldl-1.1.5/foldl.cabal 2016-01-22 07:01:46.0 +0100 +++ new/foldl-1.1.6/foldl.cabal 2016-03-12 21:01:49.0 +0100 @@ -1,5 +1,5 @@ Name: foldl -Version: 1.1.5 +Version: 1.1.6 Cabal-Version: >=1.8.0.2 Build-Type: Simple License: BSD3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/foldl-1.1.5/src/Control/Foldl.hs new/foldl-1.1.6/src/Control/Foldl.hs --- old/foldl-1.1.5/src/Control/Foldl.hs2016-01-22 07:01:46.0 +0100 +++ new/foldl-1.1.6/src/Control/Foldl.hs2016-03-12 21:01:49.0 +0100 @@ -64,7 +64,9 @@ , sum , product , maximum +, maximumBy , minimum +, minimumBy , elem , notElem , find @@ -549,11 +551,33 @@ maximum = _Fold1 max {-# INLINABLE maximum #-} +{-| Computes the maximum element with respect to the given comparison +function +-} +maximumBy :: (a -> a -> Ordering) -> Fold a (Maybe a) +maximumBy cmp = _Fold1 max' + where +max' x y = case cmp x y of +GT -> x +_ -> y +{-# INLINABLE maximumBy #-} + -- | Computes the minimum element minimum :: Ord a => Fold a (Maybe a) minimum = _Fold1 min {-# INLINABLE minimum #-} +{-| Computes the minimum element with respect to the given comparison +function +-} +minimumBy :: (a -> a -> Ordering) -> Fold a (Maybe a) +minimumBy cmp = _Fold1 min' + where +min' x y = case cmp x y of +GT -> y +_ -> x +{-# INLINABLE minimumBy #-} + {-| @(elem a)@ returns 'True' if the container has an element equal to @a@, 'False' otherwise -} @@ -927,6 +951,7 @@ > handles _1 :: Fold a r -> Fold (a, b) r > handles _Left:: Fold a r -> Fold (Either a b) r > handles traverse :: Traversable t => Fold a r -> Fold (t a) r +> handles folded :: Foldablet => Fold a r -> Fold (t a) r >>> fold (handles traverse sum) [[1..5],[6..10]] 55 @@ -934,7 +959,7 @@ >>> fold (handles (traverse.traverse) sum) [[Nothing, Just 2, Just 7],[Just >>> 13, Nothing, Just 20]] 42 ->>> fold (handles (filtered even) sum) [1,3,5,7,21,21] +>>> fold (handles (filtered even) sum) [1..10] 42 >>> fold (handles _2 mconcat) [(1,"Hello "),(2,"World"),(3,"!")] @@ -978,6 +1003,7 @@ > handlesM _1 :: FoldM m a r -> FoldM (a, b) r > handlesM _Left:: FoldM m a r -> FoldM (Either a b) r > handlesM traverse :: Traversable t => FoldM m a r -> FoldM m (t a) r +> handlesM folded :: Foldablet => FoldM m a r -> FoldM m (t a) r `handlesM` obeys these laws: