Hello community, here is the log from the commit of package ghc-HSet for openSUSE:Factory checked in at 2017-06-04 01:56:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-HSet (Old) and /work/SRC/openSUSE:Factory/.ghc-HSet.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-HSet" Sun Jun 4 01:56:49 2017 rev:2 rq:499683 version:0.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-HSet/ghc-HSet.changes 2016-09-24 15:21:27.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-HSet.new/ghc-HSet.changes 2017-06-04 01:56:50.389538400 +0200 @@ -1,0 +2,5 @@ +Thu May 18 09:52:20 UTC 2017 - psim...@suse.com + +- Update to version 0.0.1 with cabal2obs. + +------------------------------------------------------------------- Old: ---- HSet-0.0.0.tar.gz New: ---- HSet-0.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-HSet.spec ++++++ --- /var/tmp/diff_new_pack.RFAer5/_old 2017-06-04 01:56:50.889467772 +0200 +++ /var/tmp/diff_new_pack.RFAer5/_new 2017-06-04 01:56:50.893467207 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-HSet # -# 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,21 +18,19 @@ %global pkg_name HSet Name: ghc-%{pkg_name} -Version: 0.0.0 +Version: 0.0.1 Release: 0 Summary: Faux heterogeneous sets 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-hashable-devel BuildRequires: ghc-hashtables-devel BuildRequires: ghc-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -# End cabal-rpm deps %description Faux heterogeneous sets. @@ -51,15 +49,12 @@ %prep %setup -q -n %{pkg_name}-%{version} - %build %ghc_lib_build - %install %ghc_lib_install - %post devel %ghc_pkg_recache ++++++ HSet-0.0.0.tar.gz -> HSet-0.0.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HSet-0.0.0/HSet.cabal new/HSet-0.0.1/HSet.cabal --- old/HSet-0.0.0/HSet.cabal 2016-04-26 08:58:27.000000000 +0200 +++ new/HSet-0.0.1/HSet.cabal 2017-05-11 19:02:30.000000000 +0200 @@ -1,5 +1,5 @@ Name: HSet -Version: 0.0.0 +Version: 0.0.1 Author: Athan Clark <athan.cl...@gmail.com> Maintainer: Athan Clark <athan.cl...@gmail.com> License: BSD3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HSet-0.0.0/src/Data/HSet/Mutable.hs new/HSet-0.0.1/src/Data/HSet/Mutable.hs --- old/HSet-0.0.0/src/Data/HSet/Mutable.hs 2016-04-26 09:22:30.000000000 +0200 +++ new/HSet-0.0.1/src/Data/HSet/Mutable.hs 2017-05-11 19:02:19.000000000 +0200 @@ -12,7 +12,8 @@ import Prelude hiding (lookup, length) import Data.Maybe (fromMaybe) -import Data.Typeable.Internal (Fingerprint, TypeRep (TypeRep)) +import Data.Typeable (typeOf, typeRepFingerprint) +import GHC.Fingerprint import Data.Dynamic import Data.HashTable.ST.Basic (HashTable) @@ -31,10 +32,9 @@ new = HSet <$> HT.new <*> HT.new -insert :: ( Typeable a - ) => a -> HSet s -> ST s (HKey a) +insert :: Typeable a => a -> HSet s -> ST s (HKey a) insert x (HSet xs count) = do - let (TypeRep f _ _ _) = typeOf x + let f = typeRepFingerprint $ typeOf x c <- fromMaybe 0 <$> HT.lookup count f HT.insert count f (c+1) let k = HKey' f c @@ -42,8 +42,7 @@ pure (HKey k) -lookup :: ( Typeable a - ) => HKey a -> HSet s -> ST s (Maybe a) +lookup :: Typeable a => HKey a -> HSet s -> ST s (Maybe a) lookup (HKey k) (HSet xs _) = (>>= fromDynamic) <$> HT.lookup xs k diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HSet-0.0.0/src/Data/HSet/Types.hs new/HSet-0.0.1/src/Data/HSet/Types.hs --- old/HSet-0.0.0/src/Data/HSet/Types.hs 2016-04-26 08:38:19.000000000 +0200 +++ new/HSet-0.0.1/src/Data/HSet/Types.hs 2017-05-11 19:02:19.000000000 +0200 @@ -4,8 +4,7 @@ module Data.HSet.Types where -import Data.Typeable.Internal (Fingerprint (..)) - +import GHC.Fingerprint (Fingerprint(..)) import GHC.Generics import Data.Hashable