Hello community, here is the log from the commit of package ghc-bimap for openSUSE:Factory checked in at 2017-06-04 01:51:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-bimap (Old) and /work/SRC/openSUSE:Factory/.ghc-bimap.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-bimap" Sun Jun 4 01:51:49 2017 rev:2 rq:494139 version:0.3.3 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-bimap/ghc-bimap.changes 2016-09-25 14:33:37.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-bimap.new/ghc-bimap.changes 2017-06-04 01:51:58.906719382 +0200 @@ -1,0 +2,5 @@ +Wed May 3 08:13:57 UTC 2017 - [email protected] + +- Update to version 0.3.3 with cabal2obs. + +------------------------------------------------------------------- Old: ---- bimap-0.3.2.tar.gz New: ---- bimap-0.3.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-bimap.spec ++++++ --- /var/tmp/diff_new_pack.0PVVlc/_old 2017-06-04 01:52:00.354514829 +0200 +++ /var/tmp/diff_new_pack.0PVVlc/_new 2017-06-04 01:52:00.354514829 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-bimap # -# 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,15 +19,14 @@ %global pkg_name bimap %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.3.2 +Version: 0.3.3 Release: 0 Summary: Bidirectional mapping between two key types 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-containers-devel BuildRequires: ghc-exceptions-devel BuildRequires: ghc-rpm-macros @@ -36,7 +35,6 @@ BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-template-haskell-devel %endif -# End cabal-rpm deps %description A data structure representing a bidirectional mapping between two key types. @@ -57,20 +55,14 @@ %prep %setup -q -n %{pkg_name}-%{version} - %build %ghc_lib_build - %install %ghc_lib_install - %check -%if %{with tests} -%{cabal} test -%endif - +%cabal_test %post devel %ghc_pkg_recache ++++++ bimap-0.3.2.tar.gz -> bimap-0.3.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bimap-0.3.2/Data/Bimap.hs new/bimap-0.3.3/Data/Bimap.hs --- old/bimap-0.3.2/Data/Bimap.hs 2016-01-19 03:04:50.000000000 +0100 +++ new/bimap-0.3.3/Data/Bimap.hs 2017-04-28 16:46:43.000000000 +0200 @@ -89,6 +89,7 @@ import Control.Monad.Catch +import Data.Function (on) import Data.List (foldl', sort) import qualified Data.Map as M import Data.Maybe (fromMaybe) @@ -111,7 +112,10 @@ show x = "fromList " ++ (show . toList $ x) instance (Eq a, Eq b) => Eq (Bimap a b) where - (==) bx by = toAscList bx == toAscList by + (==) = (==) `on` toAscList + +instance (Ord a, Ord b) => Ord (Bimap a b) where + compare = compare `on` toAscList {-| A 'Bimap' action failed. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bimap-0.3.2/bimap.cabal new/bimap-0.3.3/bimap.cabal --- old/bimap-0.3.2/bimap.cabal 2016-01-19 03:04:50.000000000 +0100 +++ new/bimap-0.3.3/bimap.cabal 2017-04-28 16:46:43.000000000 +0200 @@ -1,6 +1,6 @@ cabal-version: >= 1.8 name: bimap -version: 0.3.2 +version: 0.3.3 synopsis: Bidirectional mapping between two key types description: A data structure representing a bidirectional mapping between two
