commit ghc-psqueues for openSUSE:Factory

2020-09-07 Thread root
Hello community,

here is the log from the commit of package ghc-psqueues for openSUSE:Factory 
checked in at 2020-09-07 22:03:26

Comparing /work/SRC/openSUSE:Factory/ghc-psqueues (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-psqueues.new.3399 (New)


Package is "ghc-psqueues"

Mon Sep  7 22:03:26 2020 rev:3 rq:832307 version:0.2.7.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-psqueues/ghc-psqueues.changes
2020-08-28 21:36:38.812759868 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-psqueues.new.3399/ghc-psqueues.changes  
2020-09-07 22:03:27.762102005 +0200
@@ -1,0 +2,6 @@
+Mon Aug 31 09:34:37 UTC 2020 - psim...@suse.com
+
+- Update psqueues to version 0.2.7.2 revision 1.
+  Upstream has revised the Cabal build instructions on Hackage.
+
+---



Other differences:
--



commit ghc-psqueues for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-psqueues for openSUSE:Factory 
checked in at 2020-08-28 21:36:36

Comparing /work/SRC/openSUSE:Factory/ghc-psqueues (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-psqueues.new.3399 (New)


Package is "ghc-psqueues"

Fri Aug 28 21:36:36 2020 rev:2 rq:829393 version:0.2.7.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-psqueues/ghc-psqueues.changes
2020-06-19 17:03:44.816571406 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-psqueues.new.3399/ghc-psqueues.changes  
2020-08-28 21:36:38.812759868 +0200
@@ -1,0 +2,5 @@
+Tue Aug 18 10:45:48 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---



Other differences:
--
++ ghc-psqueues.spec ++
--- /var/tmp/diff_new_pack.yFVkGd/_old  2020-08-28 21:36:39.352760124 +0200
+++ /var/tmp/diff_new_pack.yFVkGd/_new  2020-08-28 21:36:39.356760126 +0200
@@ -91,7 +91,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-psqueues for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-psqueues for openSUSE:Factory 
checked in at 2017-09-15 22:07:16

Comparing /work/SRC/openSUSE:Factory/ghc-psqueues (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-psqueues.new (New)


Package is "ghc-psqueues"

Fri Sep 15 22:07:16 2017 rev:8 rq:525234 version:0.2.3.0

Changes:

--- /work/SRC/openSUSE:Factory/ghc-psqueues/ghc-psqueues.changes
2017-07-21 22:48:39.159047344 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-psqueues.new/ghc-psqueues.changes   
2017-09-15 22:07:17.414501279 +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-psqueues.spec ++
--- /var/tmp/diff_new_pack.7Cxoh0/_old  2017-09-15 22:07:18.046412248 +0200
+++ /var/tmp/diff_new_pack.7Cxoh0/_new  2017-09-15 22:07:18.050411684 +0200
@@ -23,14 +23,13 @@
 Release:0
 Summary:Pure priority search queues
 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-deepseq-devel
 BuildRequires:  ghc-hashable-devel
 BuildRequires:  ghc-rpm-macros
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-HUnit-devel
 BuildRequires:  ghc-QuickCheck-devel
@@ -83,7 +82,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}
@@ -111,11 +110,9 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 %doc CHANGELOG
 
 %changelog




commit ghc-psqueues for openSUSE:Factory

2017-07-21 Thread root
Hello community,

here is the log from the commit of package ghc-psqueues for openSUSE:Factory 
checked in at 2017-07-21 22:48:35

Comparing /work/SRC/openSUSE:Factory/ghc-psqueues (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-psqueues.new (New)


Package is "ghc-psqueues"

Fri Jul 21 22:48:35 2017 rev:7 rq:511313 version:0.2.3.0

Changes:

--- /work/SRC/openSUSE:Factory/ghc-psqueues/ghc-psqueues.changes
2017-01-12 15:51:52.537064187 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-psqueues.new/ghc-psqueues.changes   
2017-07-21 22:48:39.159047344 +0200
@@ -1,0 +2,5 @@
+Tue Jul 11 03:02:31 UTC 2017 - psim...@suse.com
+
+- Update to version 0.2.3.0.
+
+---

Old:

  psqueues-0.2.2.3.tar.gz

New:

  psqueues-0.2.3.0.tar.gz



Other differences:
--
++ ghc-psqueues.spec ++
--- /var/tmp/diff_new_pack.pv7Ows/_old  2017-07-21 22:48:39.694971744 +0200
+++ /var/tmp/diff_new_pack.pv7Ows/_new  2017-07-21 22:48:39.698971180 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-psqueues
 #
-# 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
@@ -19,7 +19,7 @@
 %global pkg_name psqueues
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.2.2.3
+Version:0.2.3.0
 Release:0
 Summary:Pure priority search queues
 License:BSD-3-Clause

++ psqueues-0.2.2.3.tar.gz -> psqueues-0.2.3.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/psqueues-0.2.2.3/CHANGELOG 
new/psqueues-0.2.3.0/CHANGELOG
--- old/psqueues-0.2.2.3/CHANGELOG  2016-11-28 11:35:46.0 +0100
+++ new/psqueues-0.2.3.0/CHANGELOG  2017-07-03 13:10:35.0 +0200
@@ -1,3 +1,9 @@
+- 0.2.3.0
+* Add an `atMostView` function to all PSQ flavours
+* Bump HUnit dependency to 1.6
+* Bump QuickCheck dependency to 2.10
+* Clean up warnings on newer and older GHC versions
+
 - 0.2.2.3
 * Bump HUnit dependency to 1.5
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/psqueues-0.2.2.3/psqueues.cabal 
new/psqueues-0.2.3.0/psqueues.cabal
--- old/psqueues-0.2.2.3/psqueues.cabal 2016-11-28 11:35:46.0 +0100
+++ new/psqueues-0.2.3.0/psqueues.cabal 2017-07-03 13:10:35.0 +0200
@@ -1,5 +1,5 @@
 Name:  psqueues
-Version:   0.2.2.3
+Version:   0.2.3.0
 License:   BSD3
 License-file:  LICENSE
 Maintainer:Jasper Van der Jeugt 
@@ -85,17 +85,23 @@
 Type:   exitcode-stdio-1.0
 Hs-source-dirs: src benchmarks
 Main-is:Main.hs
+Ghc-options:-Wall
 
 Other-modules:
 BenchmarkTypes
+Data.BitUtil
 Data.FingerTree.PSQueue.Benchmark
+Data.HashPSQ
 Data.HashPSQ.Benchmark
+Data.HashPSQ.Internal
+Data.IntPSQ
 Data.IntPSQ.Benchmark
+Data.IntPSQ.Internal
+Data.OrdPSQ
 Data.OrdPSQ.Benchmark
+Data.OrdPSQ.Internal
 Data.PSQueue.Benchmark
 
-Ghc-options:-Wall
-
 Build-depends:
   containers   >= 0.5
 , unordered-containers >= 0.2.4
@@ -119,17 +125,24 @@
 Type:   exitcode-stdio-1.0
 
 Other-modules:
+Data.BitUtil
+Data.HashPSQ
+Data.HashPSQ.Internal
+Data.HashPSQ.Tests
+Data.IntPSQ
+Data.IntPSQ.Internal
+Data.IntPSQ.Tests
+Data.OrdPSQ
+Data.OrdPSQ.Internal
+Data.OrdPSQ.Tests
 Data.PSQ.Class
 Data.PSQ.Class.Gen
 Data.PSQ.Class.Tests
 Data.PSQ.Class.Util
-Data.HashPSQ.Tests
-Data.IntPSQ.Tests
-Data.OrdPSQ.Tests
 
 Build-depends:
-  HUnit  >= 1.2 && < 1.6
-, QuickCheck >= 2.7 && < 2.10
+  HUnit  >= 1.2 && < 1.7
+, QuickCheck >= 2.7 && < 2.11
 , test-framework >= 0.8 && < 0.9
 , test-framework-hunit   >= 0.3 && < 0.4
 , test-framework-quickcheck2 >= 0.3 && < 0.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/psqueues-0.2.2.3/src/Data/HashPSQ/Internal.hs 
new/psqueues-0.2.3.0/src/Data/HashPSQ/Internal.hs
--- old/psqueues-0.2.2.3/src/Data/HashPSQ/Internal.hs   2016-11-28 
11:35:46.0 +0100
+++ new/psqueues-0.2.3.0/src/Data/HashPSQ/Internal.hs   2017-07-03 
13:10:35.0 +0200
@@ -39,6 +39,7 @@
 , insertView
 , deleteView
  

commit ghc-psqueues for openSUSE:Factory

2016-09-05 Thread h_root
Hello community,

here is the log from the commit of package ghc-psqueues for openSUSE:Factory 
checked in at 2016-09-05 21:20:41

Comparing /work/SRC/openSUSE:Factory/ghc-psqueues (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-psqueues.new (New)


Package is "ghc-psqueues"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-psqueues/ghc-psqueues.changes
2016-07-27 16:09:15.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-psqueues.new/ghc-psqueues.changes   
2016-09-05 21:20:44.0 +0200
@@ -1,0 +2,5 @@
+Mon Aug  1 10:32:50 UTC 2016 - psim...@suse.com
+
+- Update to version 0.2.2.2 revision 0 with cabal2obs.
+
+---

Old:

  psqueues-0.2.2.1.tar.gz

New:

  psqueues-0.2.2.2.tar.gz



Other differences:
--
++ ghc-psqueues.spec ++
--- /var/tmp/diff_new_pack.RJdbQF/_old  2016-09-05 21:20:45.0 +0200
+++ /var/tmp/diff_new_pack.RJdbQF/_new  2016-09-05 21:20:45.0 +0200
@@ -19,15 +19,14 @@
 %global pkg_name psqueues
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.2.2.1
+Version:0.2.2.2
 Release:0
 Summary:Pure priority search queues
 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-deepseq-devel
 BuildRequires:  ghc-hashable-devel
 BuildRequires:  ghc-rpm-macros
@@ -41,7 +40,6 @@
 BuildRequires:  ghc-test-framework-hunit-devel
 BuildRequires:  ghc-test-framework-quickcheck2-devel
 %endif
-# End cabal-rpm deps
 
 %description
 The psqueues package provides  psqueues-0.2.2.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/psqueues-0.2.2.1/CHANGELOG 
new/psqueues-0.2.2.2/CHANGELOG
--- old/psqueues-0.2.2.1/CHANGELOG  2016-04-22 12:16:55.0 +0200
+++ new/psqueues-0.2.2.2/CHANGELOG  2016-07-24 14:44:55.0 +0200
@@ -1,3 +1,6 @@
+- 0.2.2.2
+* Bump QuickCheck dependency bounds
+
 - 0.2.2.1
 * Fix benchmark compilation with stack
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/psqueues-0.2.2.1/psqueues.cabal 
new/psqueues-0.2.2.2/psqueues.cabal
--- old/psqueues-0.2.2.1/psqueues.cabal 2016-04-22 12:16:55.0 +0200
+++ new/psqueues-0.2.2.2/psqueues.cabal 2016-07-24 14:44:55.0 +0200
@@ -1,5 +1,5 @@
 Name:  psqueues
-Version:   0.2.2.1
+Version:   0.2.2.2
 License:   BSD3
 License-file:  LICENSE
 Maintainer:Jasper Van der Jeugt 
@@ -129,7 +129,7 @@
 
 Build-depends:
   HUnit  >= 1.2 && < 1.4
-, QuickCheck >= 2.7 && < 2.9
+, QuickCheck >= 2.7 && < 2.10
 , test-framework >= 0.8 && < 0.9
 , test-framework-hunit   >= 0.3 && < 0.4
 , test-framework-quickcheck2 >= 0.3 && < 0.4




commit ghc-psqueues for openSUSE:Factory

2016-07-27 Thread h_root
Hello community,

here is the log from the commit of package ghc-psqueues for openSUSE:Factory 
checked in at 2016-07-27 16:09:04

Comparing /work/SRC/openSUSE:Factory/ghc-psqueues (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-psqueues.new (New)


Package is "ghc-psqueues"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-psqueues/ghc-psqueues.changes
2016-04-30 23:30:28.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-psqueues.new/ghc-psqueues.changes   
2016-07-27 16:09:15.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 17:32:24 UTC 2016 - psim...@suse.com
+
+- Update to version 0.2.2.1 revision 0 with cabal2obs.
+
+---



Other differences:
--
++ ghc-psqueues.spec ++
--- /var/tmp/diff_new_pack.hgTFJJ/_old  2016-07-27 16:09:16.0 +0200
+++ /var/tmp/diff_new_pack.hgTFJJ/_new  2016-07-27 16:09:16.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-psqueues
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 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
@@ -15,26 +15,23 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-%global pkg_name psqueues
 
+%global pkg_name psqueues
 %bcond_with tests
-
-Name:   ghc-psqueues
+Name:   ghc-%{pkg_name}
 Version:0.2.2.1
 Release:0
 Summary:Pure priority search queues
-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-deepseq-devel
 BuildRequires:  ghc-hashable-devel
+BuildRequires:  ghc-rpm-macros
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-HUnit-devel
 BuildRequires:  ghc-QuickCheck-devel
@@ -86,19 +83,17 @@
 
 * Pathfinding algorithms, such as Dijkstra's and A*.
 
-
 %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}
 
@@ -113,25 +108,22 @@
 
 %check
 %if %{with tests}
-%cabal test
+%{cabal} test
 %endif
 
 
 %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,-)
-
+%doc CHANGELOG
 
 %changelog




commit ghc-psqueues for openSUSE:Factory

2016-04-30 Thread h_root
Hello community,

here is the log from the commit of package ghc-psqueues for openSUSE:Factory 
checked in at 2016-04-30 23:30:27

Comparing /work/SRC/openSUSE:Factory/ghc-psqueues (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-psqueues.new (New)


Package is "ghc-psqueues"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-psqueues/ghc-psqueues.changes
2016-02-11 12:37:32.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-psqueues.new/ghc-psqueues.changes   
2016-04-30 23:30:28.0 +0200
@@ -1,0 +2,6 @@
+Tue Apr 26 08:39:18 UTC 2016 - mimi...@gmail.com
+
+- update to 0.2.2.1
+* Fix benchmark compilation with stack
+
+---

Old:

  psqueues-0.2.2.0.tar.gz

New:

  psqueues-0.2.2.1.tar.gz



Other differences:
--
++ ghc-psqueues.spec ++
--- /var/tmp/diff_new_pack.UburaB/_old  2016-04-30 23:30:29.0 +0200
+++ /var/tmp/diff_new_pack.UburaB/_new  2016-04-30 23:30:29.0 +0200
@@ -20,7 +20,7 @@
 %bcond_with tests
 
 Name:   ghc-psqueues
-Version:0.2.2.0
+Version:0.2.2.1
 Release:0
 Summary:Pure priority search queues
 Group:  System/Libraries

++ psqueues-0.2.2.0.tar.gz -> psqueues-0.2.2.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/psqueues-0.2.2.0/CHANGELOG 
new/psqueues-0.2.2.1/CHANGELOG
--- old/psqueues-0.2.2.0/CHANGELOG  2016-02-06 11:43:26.0 +0100
+++ new/psqueues-0.2.2.1/CHANGELOG  2016-04-22 12:16:55.0 +0200
@@ -1,3 +1,6 @@
+- 0.2.2.1
+* Fix benchmark compilation with stack
+
 - 0.2.2.0
 * Fix import of Traversable on GHC 7.8
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/psqueues-0.2.2.0/benchmarks/BenchmarkTypes.hs 
new/psqueues-0.2.2.1/benchmarks/BenchmarkTypes.hs
--- old/psqueues-0.2.2.0/benchmarks/BenchmarkTypes.hs   1970-01-01 
01:00:00.0 +0100
+++ new/psqueues-0.2.2.1/benchmarks/BenchmarkTypes.hs   2016-04-22 
12:16:55.0 +0200
@@ -0,0 +1,28 @@
+
+module BenchmarkTypes where
+
+import Criterion
+
+type BElem = (Int, Int, ())
+
+data BenchmarkSet = BenchmarkSet
+{ bGroupName:: String
+, bMinView  :: Benchmarkable
+, bLookup   :: Benchmarkable
+, bInsertEmpty  :: Benchmarkable
+, bInsertNew:: Benchmarkable
+, bInsertDuplicates :: Benchmarkable
+, bDelete   :: Benchmarkable
+}
+
+runBenchmark :: [BenchmarkSet] -> [Benchmark]
+runBenchmark bset =
+[ bgroup "minView"  $ map (bench' bMinView)  bset
+, bgroup "lookup"   $ map (bench' bLookup)   bset
+, bgroup "insertEmpty"  $ map (bench' bInsertEmpty)  bset
+, bgroup "insertNew"$ map (bench' bInsertNew)bset
+, bgroup "insertDuplicates" $ map (bench' bInsertDuplicates) bset
+, bgroup "delete"   $ map (bench' bDelete)   bset
+]
+  where
+   bench' f x = bench (bGroupName x) (f x)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/psqueues-0.2.2.0/benchmarks/Data/FingerTree/PSQueue/Benchmark.hs 
new/psqueues-0.2.2.1/benchmarks/Data/FingerTree/PSQueue/Benchmark.hs
--- old/psqueues-0.2.2.0/benchmarks/Data/FingerTree/PSQueue/Benchmark.hs
1970-01-01 01:00:00.0 +0100
+++ new/psqueues-0.2.2.1/benchmarks/Data/FingerTree/PSQueue/Benchmark.hs
2016-04-22 12:16:55.0 +0200
@@ -0,0 +1,61 @@
+{-# LANGUAGE BangPatterns #-}
+
+-- | This module contains benchmarks for the 'PSQueue' type from the
+-- `fingertree-psqueue` package.
+module Data.FingerTree.PSQueue.Benchmark
+( benchmark
+) where
+
+import   Data.List (foldl')
+import   Data.FingerTree.PSQueue (Binding (..))
+import qualified Data.FingerTree.PSQueue as PSQueue
+import   Criterion.Main
+import   Prelude hiding (lookup)
+import   BenchmarkTypes
+import   Data.Maybe (fromMaybe)
+
+benchmark :: String -> [BElem] -> BenchmarkSet
+benchmark name elems = BenchmarkSet
+{ bGroupName= name
+, bMinView  = whnf bench_minView  initialPSQ
+, bLookup   = whnf (bench_lookup keys)initialPSQ
+, bInsertEmpty  = nf'  (bench_insert firstElems)  PSQueue.empty
+, bInsertNew= nf'  (bench_insert secondElems) initialPSQ
+, bInsertDuplicates = nf'  (bench_insert firstElems)  initialPSQ
+, bDelete   = nf'  (bench_delete firstKeys)   initialPSQ
+}
+  where
+(firstElems, secondElems) = splitAt (numElems `div` 2) elems
+numElems  = length elems
+keys  = map (\(x, _, _) -> x) elems
+   

commit ghc-psqueues for openSUSE:Factory

2016-02-11 Thread h_root
Hello community,

here is the log from the commit of package ghc-psqueues for openSUSE:Factory 
checked in at 2016-02-11 12:37:31

Comparing /work/SRC/openSUSE:Factory/ghc-psqueues (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-psqueues.new (New)


Package is "ghc-psqueues"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-psqueues/ghc-psqueues.changes
2015-11-10 10:02:43.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-psqueues.new/ghc-psqueues.changes   
2016-02-11 12:37:32.0 +0100
@@ -1,0 +2,6 @@
+Mon Feb  8 09:18:40 UTC 2016 - mimi...@gmail.com
+
+- update to 0.2.2.0
+* Add Traversable instances
+
+---

Old:

  psqueues-0.2.0.3.tar.gz

New:

  psqueues-0.2.2.0.tar.gz



Other differences:
--
++ ghc-psqueues.spec ++
--- /var/tmp/diff_new_pack.tGkxhq/_old  2016-02-11 12:37:33.0 +0100
+++ /var/tmp/diff_new_pack.tGkxhq/_new  2016-02-11 12:37:33.0 +0100
@@ -20,7 +20,7 @@
 %bcond_with tests
 
 Name:   ghc-psqueues
-Version:0.2.0.3
+Version:0.2.2.0
 Release:0
 Summary:Pure priority search queues
 Group:  System/Libraries

++ psqueues-0.2.0.3.tar.gz -> psqueues-0.2.2.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/psqueues-0.2.0.3/CHANGELOG 
new/psqueues-0.2.2.0/CHANGELOG
--- old/psqueues-0.2.0.3/CHANGELOG  2015-09-23 19:48:13.0 +0200
+++ new/psqueues-0.2.2.0/CHANGELOG  2016-02-06 11:43:26.0 +0100
@@ -1,3 +1,9 @@
+- 0.2.2.0
+* Fix import of Traversable on GHC 7.8
+
+- 0.2.1.0
+* Add Traversable instances
+
 - 0.2.0.3
 * Bump HUnit dependency bounds
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/psqueues-0.2.0.3/psqueues.cabal 
new/psqueues-0.2.2.0/psqueues.cabal
--- old/psqueues-0.2.0.3/psqueues.cabal 2015-09-23 19:48:13.0 +0200
+++ new/psqueues-0.2.2.0/psqueues.cabal 2016-02-06 11:43:26.0 +0100
@@ -1,5 +1,5 @@
 Name:  psqueues
-Version:   0.2.0.3
+Version:   0.2.2.0
 License:   BSD3
 License-file:  LICENSE
 Maintainer:Jasper Van der Jeugt 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/psqueues-0.2.0.3/src/Data/HashPSQ/Internal.hs 
new/psqueues-0.2.2.0/src/Data/HashPSQ/Internal.hs
--- old/psqueues-0.2.0.3/src/Data/HashPSQ/Internal.hs   2015-09-23 
19:48:13.0 +0200
+++ new/psqueues-0.2.2.0/src/Data/HashPSQ/Internal.hs   2016-02-06 
11:43:26.0 +0100
@@ -1,4 +1,7 @@
 {-# LANGUAGE BangPatterns   #-}
+{-# LANGUAGE DeriveFoldable #-}
+{-# LANGUAGE DeriveFunctor  #-}
+{-# LANGUAGE DeriveTraversable  #-}
 {-# LANGUAGE GeneralizedNewtypeDeriving #-}
 {-# LANGUAGE ScopedTypeVariables#-}
 module Data.HashPSQ.Internal
@@ -50,12 +53,13 @@
 , valid
 ) where
 
-import   Control.DeepSeq (NFData (..))
-import   Data.Foldable   (Foldable (foldr))
+import   Control.DeepSeq  (NFData (..))
+import   Data.Foldable(Foldable (foldr))
 import   Data.Hashable
-import   Data.Maybe  (isJust)
-import   Prelude hiding (foldr, lookup, map, null)
-import qualified Data.List   as List
+import qualified Data.Listas List
+import   Data.Maybe   (isJust)
+import   Prelude  hiding (foldr, lookup, map, null)
+import   Data.Traversable
 
 import qualified Data.IntPSQ.Internal as IntPSQ
 import qualified Data.OrdPSQ  as OrdPSQ
@@ -65,7 +69,7 @@
 --
 
 data Bucket k p v = B !k !v !(OrdPSQ.OrdPSQ k p v)
-deriving (Show)
+deriving (Foldable, Functor, Show, Traversable)
 
 -- | Smart constructor which takes care of placing the minimum element directly
 -- in the 'Bucket'.
@@ -91,7 +95,7 @@
 -- | A priority search queue with keys of type @k@ and priorities of type @p@
 -- and values of type @v@. It is strict in keys, priorities and values.
 newtype HashPSQ k p v = HashPSQ (IntPSQ.IntPSQ p (Bucket k p v))
-deriving (NFData, Show)
+deriving (Foldable, Functor, NFData, Show, Traversable)
 
 instance (Eq k, Eq p, Eq v, Hashable k, Ord k, Ord p) =>
 Eq (HashPSQ k p v) where
@@ -102,15 +106,6 @@
 (Just _   , Nothing) -> False
 (Nothing  , Just _ ) -> False
 
-instance Foldable (HashPSQ k p) where
-foldr f z0 (HashPSQ ipsq) =
-foldr f' z0 ipsq
-  where
-f' (B _ x opsq) z = f x (foldr f z opsq)
-
-instance Functor (HashP