Hello community, here is the log from the commit of package ghc-intern for openSUSE:Factory checked in at 2020-10-23 15:14:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-intern (Old) and /work/SRC/openSUSE:Factory/.ghc-intern.new.3463 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-intern" Fri Oct 23 15:14:07 2020 rev:2 rq:842750 version:0.9.3 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-intern/ghc-intern.changes 2020-09-07 21:25:46.129116569 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-intern.new.3463/ghc-intern.changes 2020-10-23 15:14:09.634128829 +0200 @@ -1,0 +2,9 @@ +Tue Oct 6 08:56:09 UTC 2020 - psim...@suse.com + +- Update intern to version 0.9.3. + 0.9.3 [2020.09.30] + ------------------ + * Add `Hashable` instances for `InternedString`, `InternedByteString`, + `InternedText`, and `IntSet`. + +------------------------------------------------------------------- Old: ---- intern-0.9.2.tar.gz intern.cabal New: ---- intern-0.9.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-intern.spec ++++++ --- /var/tmp/diff_new_pack.YDf4is/_old 2020-10-23 15:14:10.150129078 +0200 +++ /var/tmp/diff_new_pack.YDf4is/_new 2020-10-23 15:14:10.150129078 +0200 @@ -18,13 +18,12 @@ %global pkg_name intern Name: ghc-%{pkg_name} -Version: 0.9.2 +Version: 0.9.3 Release: 0 Summary: Efficient hash-consing for arbitrary data types 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-array-devel BuildRequires: ghc-bytestring-devel @@ -48,7 +47,6 @@ %prep %autosetup -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++++++ intern-0.9.2.tar.gz -> intern-0.9.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/intern-0.9.2/CHANGELOG.markdown new/intern-0.9.3/CHANGELOG.markdown --- old/intern-0.9.2/CHANGELOG.markdown 2018-02-24 21:28:41.000000000 +0100 +++ new/intern-0.9.3/CHANGELOG.markdown 2001-09-09 03:46:40.000000000 +0200 @@ -1,3 +1,8 @@ +0.9.3 [2020.09.30] +------------------ +* Add `Hashable` instances for `InternedString`, `InternedByteString`, + `InternedText`, and `IntSet`. + 0.9.2 ----- * Add a `Semigroup IntSet` instance. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/intern-0.9.2/Data/Interned/IntSet.hs new/intern-0.9.3/Data/Interned/IntSet.hs --- old/intern-0.9.2/Data/Interned/IntSet.hs 2018-02-24 21:28:41.000000000 +0100 +++ new/intern-0.9.3/Data/Interned/IntSet.hs 2001-09-09 03:46:40.000000000 +0200 @@ -111,17 +111,21 @@ import Prelude hiding (lookup,filter,foldr,foldl,null,map) import qualified Data.List as List -import Data.Monoid (Monoid(..)) import Data.Maybe (fromMaybe) -#if MIN_VERSION_base(4,9,0) && !(MIN_VERSION_base(4,11,0)) -import Data.Semigroup (Semigroup(..)) -#endif import Data.Interned.Internal import Data.Bits import Data.Hashable import Text.Read import GHC.Exts ( Word(..), Int(..), shiftRL# ) +#if !(MIN_VERSION_base(4,8,0)) +import Data.Monoid (Monoid(..)) +#endif + +#if MIN_VERSION_base(4,9,0) && !(MIN_VERSION_base(4,11,0)) +import Data.Semigroup (Semigroup(..)) +#endif + -- import Data.Typeable -- import Data.Data (Data(..), mkNoRepType) @@ -855,6 +859,11 @@ showsPrec p xs = showParen (p > 10) $ showString "fromList " . shows (toList xs) +{-------------------------------------------------------------------- + Hashable +--------------------------------------------------------------------} +instance Hashable IntSet where + hashWithSalt s x = hashWithSalt s $ identity x {-------------------------------------------------------------------- Read diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/intern-0.9.2/Data/Interned/Internal/ByteString.hs new/intern-0.9.3/Data/Interned/Internal/ByteString.hs --- old/intern-0.9.2/Data/Interned/Internal/ByteString.hs 2018-02-24 21:28:41.000000000 +0100 +++ new/intern-0.9.3/Data/Interned/Internal/ByteString.hs 2001-09-09 03:46:40.000000000 +0200 @@ -26,6 +26,9 @@ instance Show InternedByteString where showsPrec d (InternedByteString _ b) = showsPrec d b +instance Hashable InternedByteString where + hashWithSalt s (InternedByteString i _) = hashWithSalt s i + instance Interned InternedByteString where type Uninterned InternedByteString = ByteString newtype Description InternedByteString = DBS ByteString deriving (Eq,Hashable) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/intern-0.9.2/Data/Interned/Internal/String.hs new/intern-0.9.3/Data/Interned/Internal/String.hs --- old/intern-0.9.2/Data/Interned/Internal/String.hs 2018-02-24 21:28:41.000000000 +0100 +++ new/intern-0.9.3/Data/Interned/Internal/String.hs 2001-09-09 03:46:40.000000000 +0200 @@ -25,6 +25,9 @@ instance Show InternedString where showsPrec d (IS _ b) = showsPrec d b +instance Hashable InternedString where + hashWithSalt s (IS i _) = hashWithSalt s i + instance Interned InternedString where type Uninterned InternedString = String data Description InternedString = Cons {-# UNPACK #-} !Char String | Nil diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/intern-0.9.2/Data/Interned/Internal/Text.hs new/intern-0.9.3/Data/Interned/Internal/Text.hs --- old/intern-0.9.2/Data/Interned/Internal/Text.hs 2018-02-24 21:28:41.000000000 +0100 +++ new/intern-0.9.3/Data/Interned/Internal/Text.hs 2001-09-09 03:46:40.000000000 +0200 @@ -25,6 +25,9 @@ instance Show InternedText where showsPrec d (InternedText _ b) = showsPrec d b +instance Hashable InternedText where + hashWithSalt s (InternedText i _) = hashWithSalt s i + instance Interned InternedText where type Uninterned InternedText = Text newtype Description InternedText = DT Text deriving (Eq) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/intern-0.9.2/Data/Interned/Internal.hs new/intern-0.9.3/Data/Interned/Internal.hs --- old/intern-0.9.2/Data/Interned/Internal.hs 2018-02-24 21:28:41.000000000 +0100 +++ new/intern-0.9.3/Data/Interned/Internal.hs 2001-09-09 03:46:40.000000000 +0200 @@ -2,6 +2,7 @@ , FlexibleInstances , FlexibleContexts , BangPatterns + , CPP , GeneralizedNewtypeDeriving #-} module Data.Interned.Internal @@ -20,7 +21,9 @@ import Data.Hashable import Data.HashMap.Strict (HashMap) import Data.Foldable +#if !(MIN_VERSION_base(4,8,0)) import Data.Traversable +#endif import qualified Data.HashMap.Strict as HashMap import Data.IORef import GHC.IO (unsafeDupablePerformIO, unsafePerformIO) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/intern-0.9.2/intern.cabal new/intern-0.9.3/intern.cabal --- old/intern-0.9.2/intern.cabal 2018-02-24 21:28:41.000000000 +0100 +++ new/intern-0.9.3/intern.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,8 +1,8 @@ name: intern category: Data, Data Structures -version: 0.9.2 +version: 0.9.3 license: BSD3 -cabal-version: >= 1.6 +cabal-version: >= 1.10 license-file: LICENSE author: Edward A. Kmett maintainer: Edward A. Kmett <ekm...@gmail.com> @@ -19,7 +19,10 @@ , GHC == 7.10.3 , GHC == 8.0.2 , GHC == 8.2.2 - , GHC == 8.4.1 + , GHC == 8.4.4 + , GHC == 8.6.5 + , GHC == 8.8.3 + , GHC == 8.10.1 synopsis: Efficient hash-consing for arbitrary data types description: Efficient hash-consing for arbitrary data types. @@ -34,7 +37,7 @@ base >= 4 && < 5, bytestring >= 0.9 && < 0.11, text >= 0.11 && < 1.3, - hashable >= 1.1 && < 1.3, + hashable >= 1.1 && < 1.4, unordered-containers >= 0.2.1 && < 0.3, array >= 0.3 && < 0.6 @@ -50,3 +53,4 @@ Data.Interned.Internal.Text ghc-options: -Wall + default-language: Haskell2010