Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-nothunks for openSUSE:Factory checked in at 2021-07-10 22:54:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-nothunks (Old) and /work/SRC/openSUSE:Factory/.ghc-nothunks.new.2625 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-nothunks" Sat Jul 10 22:54:30 2021 rev:4 rq:905304 version:0.1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-nothunks/ghc-nothunks.changes 2021-03-10 08:58:08.794944182 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-nothunks.new.2625/ghc-nothunks.changes 2021-07-10 22:55:00.475524494 +0200 @@ -1,0 +2,9 @@ +Thu Jul 1 12:52:42 UTC 2021 - [email protected] + +- Update nothunks to version 0.1.3. + Upstream has edited the change log file since the last release in + a non-trivial way, i.e. they did more than just add a new entry + at the top. You can review the file at: + http://hackage.haskell.org/package/nothunks-0.1.3/src/CHANGELOG.md + +------------------------------------------------------------------- Old: ---- nothunks-0.1.2.tar.gz nothunks.cabal New: ---- nothunks-0.1.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-nothunks.spec ++++++ --- /var/tmp/diff_new_pack.FSeFYM/_old 2021-07-10 22:55:00.935520944 +0200 +++ /var/tmp/diff_new_pack.FSeFYM/_new 2021-07-10 22:55:00.939520913 +0200 @@ -19,13 +19,12 @@ %global pkg_name nothunks %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.1.2 +Version: 0.1.3 Release: 0 Summary: Examine values for unexpected thunks License: MIT 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-containers-devel @@ -61,7 +60,6 @@ %prep %autosetup -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++++++ nothunks-0.1.2.tar.gz -> nothunks-0.1.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nothunks-0.1.2/CHANGELOG.md new/nothunks-0.1.3/CHANGELOG.md --- old/nothunks-0.1.2/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200 +++ new/nothunks-0.1.3/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200 @@ -1,6 +1,13 @@ # Revision history for nothunks -## 0.1.2 +## 0.1.3 -- 2021-06-28 + +* Fix tests on ghc-9.0.1 + Joe Hermaszewski <[email protected]> +* Make bytestring, text and vector optional dependencies + Bodigrim <[email protected]> + +## 0.1.2 -- 2020-12-03 * Add IORef, MVar and TVar instances. Oleg Grenrus <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nothunks-0.1.2/nothunks.cabal new/nothunks-0.1.3/nothunks.cabal --- old/nothunks-0.1.2/nothunks.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/nothunks-0.1.3/nothunks.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,6 +1,6 @@ cabal-version: 2.4 name: nothunks -version: 0.1.2 +version: 0.1.3 synopsis: Examine values for unexpected thunks description: Long lived application data typically should not contain any thunks. This library can be used to examine values for @@ -12,7 +12,7 @@ bug-reports: https://github.com/input-output-hk/nothunks author: IOHK maintainer: [email protected] -copyright: 2018-2020 IOHK +copyright: 2018-2021 IOHK category: Development extra-source-files: CHANGELOG.md @@ -20,20 +20,36 @@ type: git location: https://github.com/input-output-hk/nothunks +flag bytestring + description: Provide instances for bytestring + default: True + +flag text + description: Provide instances for text + default: True + +flag vector + description: Provide instances for vector + default: True + library exposed-modules: NoThunks.Class build-depends: base >= 4.12 && < 5 - , bytestring >= 0.10 && < 0.11 , containers >= 0.5 && < 0.7 , stm >= 2.5 && < 2.6 - , text >= 1.2 && < 1.3 - , time >= 1.5 && < 1.11 - , vector >= 0.12 && < 0.13 + , time >= 1.5 && < 1.13 -- Whatever is bundled with ghc , ghc-heap + if flag(bytestring) + build-depends: bytestring >= 0.10 && < 0.12 + if flag(text) + build-depends: text >= 1.2 && < 1.3 + if flag(vector) + build-depends: vector >= 0.12 && < 0.13 + hs-source-dirs: src default-language: Haskell2010 ghc-options: -Wall @@ -58,8 +74,8 @@ -- Additional dependencies , hedgehog >= 1.0 && < 1.1 , random >= 1.1 && < 1.3 - , tasty >= 1.3 && < 1.4 - , tasty-hedgehog >= 1.0 && < 1.1 + , tasty >= 1.3 && < 1.5 + , tasty-hedgehog >= 1.0 && < 1.2 hs-source-dirs: test default-language: Haskell2010 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nothunks-0.1.2/src/NoThunks/Class.hs new/nothunks-0.1.3/src/NoThunks/Class.hs --- old/nothunks-0.1.2/src/NoThunks/Class.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/nothunks-0.1.3/src/NoThunks/Class.hs 2001-09-09 03:46:40.000000000 +0200 @@ -1,4 +1,5 @@ {-# LANGUAGE BangPatterns #-} +{-# LANGUAGE CPP #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE DefaultSignatures #-} {-# LANGUAGE DerivingVia #-} @@ -45,7 +46,6 @@ -- For instances -import Data.ByteString.Short (ShortByteString) import Data.Foldable (toList) import Data.Int import Data.IntMap (IntMap) @@ -62,18 +62,28 @@ import qualified Control.Concurrent.MVar as MVar import qualified Control.Concurrent.STM.TVar as TVar -import qualified Data.ByteString as BS.Strict -import qualified Data.ByteString.Lazy as BS.Lazy -import qualified Data.ByteString.Lazy.Internal as BS.Lazy.Internal import qualified Data.IntMap as IntMap import qualified Data.IORef as IORef import qualified Data.Map as Map import qualified Data.Set as Set + +#ifdef MIN_VERSION_bytestring +import Data.ByteString.Short (ShortByteString) +import qualified Data.ByteString as BS.Strict +import qualified Data.ByteString.Lazy as BS.Lazy +import qualified Data.ByteString.Lazy.Internal as BS.Lazy.Internal +#endif + +#ifdef MIN_VERSION_text import qualified Data.Text as Text.Strict import qualified Data.Text.Internal.Lazy as Text.Lazy.Internal import qualified Data.Text.Lazy as Text.Lazy +#endif + +#ifdef MIN_VERSION_vector import qualified Data.Vector as Vector.Boxed import qualified Data.Vector.Unboxed as Vector.Unboxed +#endif {------------------------------------------------------------------------------- Check a value for unexpected thunks @@ -509,6 +519,8 @@ ByteString -------------------------------------------------------------------------------} +#ifdef MIN_VERSION_bytestring + -- | Instance for string bytestrings -- -- Strict bytestrings /shouldn't/ contain any thunks, but could, due to @@ -541,12 +553,16 @@ , noThunks ctxt bs' ] +#endif + {------------------------------------------------------------------------------- Instances for text types For consistency, we follow the same pattern as for @ByteString@. -------------------------------------------------------------------------------} +#ifdef MIN_VERSION_text + deriving via OnlyCheckWhnfNamed "Strict.Text" Text.Strict.Text instance NoThunks Text.Strict.Text @@ -560,6 +576,8 @@ , noThunks ctxt bs' ] +#endif + {------------------------------------------------------------------------------- Tuples -------------------------------------------------------------------------------} @@ -642,6 +660,8 @@ Vector -------------------------------------------------------------------------------} +#ifdef MIN_VERSION_vector + instance NoThunks a => NoThunks (Vector.Boxed.Vector a) where showTypeOf _ = "Boxed.Vector" wNoThunks ctxt = noThunksInValues ctxt . Vector.Boxed.toList @@ -655,6 +675,8 @@ showTypeOf _ = "Unboxed.Vector" wNoThunks _ _ = return Nothing +#endif + {------------------------------------------------------------------------------- Function types -------------------------------------------------------------------------------} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nothunks-0.1.2/test/Test/NoThunks/Class.hs new/nothunks-0.1.3/test/Test/NoThunks/Class.hs --- old/nothunks-0.1.2/test/Test/NoThunks/Class.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/nothunks-0.1.3/test/Test/NoThunks/Class.hs 2001-09-09 03:46:40.000000000 +0200 @@ -577,7 +577,7 @@ checkRefNF :: Property checkRefNF = checkNFClass True $ \k -> do - ! ref <- liftIO (newRef x :: IO (ref Int)) + !ref <- liftIO (newRef x :: IO (ref Int)) k ref where x :: Int @@ -593,7 +593,7 @@ checkRefNFPure :: Property checkRefNFPure = unsafeCheckNF True $ \k -> do - ! ref <- liftIO (newRef x :: IO (ref Int)) + !ref <- liftIO (newRef x :: IO (ref Int)) k ref where x :: Int @@ -609,7 +609,7 @@ checkRefNFAtomically :: Property checkRefNFAtomically = unsafeCheckNFAtomically True $ \k -> do - ! ref <- liftIO (newRef x :: IO (ref Int)) + !ref <- liftIO (newRef x :: IO (ref Int)) k ref where x :: Int
