Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-extra for openSUSE:Factory checked in at 2024-05-21 18:34:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-extra (Old) and /work/SRC/openSUSE:Factory/.ghc-extra.new.1880 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-extra" Tue May 21 18:34:56 2024 rev:36 rq:1175068 version:1.7.16 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-extra/ghc-extra.changes 2023-07-09 20:43:08.102139020 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-extra.new.1880/ghc-extra.changes 2024-05-21 18:35:16.171815387 +0200 @@ -1,0 +2,15 @@ +Sat May 11 15:55:39 UTC 2024 - Peter Simons <[email protected]> + +- Update extra to version 1.7.16. + 1.7.16, released 2024-05-11 + Fix to actually work with GHC 9.10 + +------------------------------------------------------------------- +Fri May 10 13:07:51 UTC 2024 - Peter Simons <[email protected]> + +- Update extra to version 1.7.15. + 1.7.15, released 2024-05-10 + #111, work with GHC 9.10 + Test with GHC 9.8 + +------------------------------------------------------------------- Old: ---- extra-1.7.14.tar.gz New: ---- extra-1.7.16.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-extra.spec ++++++ --- /var/tmp/diff_new_pack.eRFxce/_old 2024-05-21 18:35:17.275855520 +0200 +++ /var/tmp/diff_new_pack.eRFxce/_new 2024-05-21 18:35:17.275855520 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-extra # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ %global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.7.14 +Version: 1.7.16 Release: 0 Summary: Extra functions I use License: BSD-3-Clause ++++++ extra-1.7.14.tar.gz -> extra-1.7.16.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/extra-1.7.14/CHANGES.txt new/extra-1.7.16/CHANGES.txt --- old/extra-1.7.14/CHANGES.txt 2001-09-09 03:46:40.000000000 +0200 +++ new/extra-1.7.16/CHANGES.txt 2001-09-09 03:46:40.000000000 +0200 @@ -1,5 +1,10 @@ Changelog for Extra +1.7.16, released 2024-05-11 + Fix to actually work with GHC 9.10 +1.7.15, released 2024-05-10 + #111, work with GHC 9.10 + Test with GHC 9.8 1.7.14, released 2023-07-01 #106, add compatibility with GHC 9.7 #103, future-proof against addition of Data.List.unsnoc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/extra-1.7.14/Generate.hs new/extra-1.7.16/Generate.hs --- old/extra-1.7.14/Generate.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/extra-1.7.16/Generate.hs 2001-09-09 03:46:40.000000000 +0200 @@ -1,5 +1,9 @@ -- This module generates the files src/Extra.hs and test/TestGen.hs. --- Either call "runghc Generate" or start "ghci" and use ":generate". +-- Typical usage is run: +-- +-- * `cabal test` to install the necessary packages +-- * `cabal exec ghci` to get into GHCi +-- * `:go` or `:generate` to run this generator module Generate(main) where @@ -47,6 +51,7 @@ ,"-- See Generate.hs for details of how to generate" ,"" ,"{-# LANGUAGE ExtendedDefaultRules, ScopedTypeVariables, TypeApplications, ViewPatterns #-}" + ,"{-# OPTIONS_GHC -Wno-x-partial -Wno-unrecognised-warning-flags #-}" ,"module TestGen(tests) where" ,"import TestUtil" ,"import qualified Data.Ord" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/extra-1.7.14/LICENSE new/extra-1.7.16/LICENSE --- old/extra-1.7.14/LICENSE 2001-09-09 03:46:40.000000000 +0200 +++ new/extra-1.7.16/LICENSE 2001-09-09 03:46:40.000000000 +0200 @@ -1,4 +1,4 @@ -Copyright Neil Mitchell 2014-2023. +Copyright Neil Mitchell 2014-2024. All rights reserved. Redistribution and use in source and binary forms, with or without diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/extra-1.7.14/README.md new/extra-1.7.16/README.md --- old/extra-1.7.14/README.md 2001-09-09 03:46:40.000000000 +0200 +++ new/extra-1.7.16/README.md 2001-09-09 03:46:40.000000000 +0200 @@ -1,4 +1,4 @@ -# Extra [](https://hackage.haskell.org/package/extra) [](https://www.stackage.org/package/extra) [](https://github.com/ndmitchell/extra/actions) +# Extra [](https://hackage.haskell.org/package/extra) [](https://www.stackage.org/package/extra) [](https://github.com/ndmitchell/extra/actions) A library of extra functions for the standard Haskell libraries. Most functions are simple additions, filling out missing functionality. A few functions are available in later versions of GHC, but this package makes them available back to GHC 7.10. A few examples: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/extra-1.7.14/extra.cabal new/extra-1.7.16/extra.cabal --- old/extra-1.7.14/extra.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/extra-1.7.16/extra.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,13 +1,13 @@ cabal-version: 1.18 build-type: Simple name: extra -version: 1.7.14 +version: 1.7.16 license: BSD3 license-file: LICENSE category: Development author: Neil Mitchell <[email protected]> maintainer: Neil Mitchell <[email protected]> -copyright: Neil Mitchell 2014-2023 +copyright: Neil Mitchell 2014-2024 synopsis: Extra functions I use. description: A library of extra functions for the standard Haskell libraries. Most functions are simple additions, filling out missing functionality. A few functions are available in later versions of GHC, but this package makes them available back to GHC 7.2. @@ -15,7 +15,7 @@ The module "Extra" documents all functions provided by this library. Modules such as "Data.List.Extra" provide extra functions over "Data.List" and also reexport "Data.List". Users are recommended to replace "Data.List" imports with "Data.List.Extra" if they need the extra functionality. homepage: https://github.com/ndmitchell/extra#readme bug-reports: https://github.com/ndmitchell/extra/issues -tested-with: GHC==9.6, GHC==9.4, GHC==9.2, GHC==9.0, GHC==8.10, GHC==8.8 +tested-with: GHC==9.8, GHC==9.6, GHC==9.4, GHC==9.2, GHC==9.0, GHC==8.10, GHC==8.8 extra-doc-files: CHANGES.txt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/extra-1.7.14/src/Control/Monad/Extra.hs new/extra-1.7.16/src/Control/Monad/Extra.hs --- old/extra-1.7.14/src/Control/Monad/Extra.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/extra-1.7.16/src/Control/Monad/Extra.hs 2001-09-09 03:46:40.000000000 +0200 @@ -52,7 +52,7 @@ pureIf b a = if b then pure a else empty -- | Like 'when', but return either 'Nothing' if the predicate was 'False', --- of 'Just' with the result of the computation. +-- or 'Just' with the result of the computation. -- -- > whenMaybe True (print 1) == fmap Just (print 1) -- > whenMaybe False (print 1) == pure Nothing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/extra-1.7.14/src/Data/List/Extra.hs new/extra-1.7.16/src/Data/List/Extra.hs --- old/extra-1.7.14/src/Data/List/Extra.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/extra-1.7.16/src/Data/List/Extra.hs 2001-09-09 03:46:40.000000000 +0200 @@ -496,7 +496,8 @@ -- > \xs -> map fst (groupSort xs) == sort (nub (map fst xs)) -- > \xs -> concatMap snd (groupSort xs) == map snd (sortOn fst xs) groupSort :: Ord k => [(k, v)] -> [(k, [v])] -groupSort = map (\x -> (fst $ head x, map snd x)) . groupOn fst . sortOn fst +groupSort = map (\x -> (fst $ headErr x, map snd x)) . groupOn fst . sortOn fst + where headErr (x:_) = x -- | A combination of 'group' and 'sort', using a part of the value to compare on. -- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/extra-1.7.14/src/Data/List/NonEmpty/Extra.hs new/extra-1.7.16/src/Data/List/NonEmpty/Extra.hs --- old/extra-1.7.14/src/Data/List/NonEmpty/Extra.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/extra-1.7.16/src/Data/List/NonEmpty/Extra.hs 2001-09-09 03:46:40.000000000 +0200 @@ -1,4 +1,5 @@ {-# LANGUAGE CPP #-} +{-# OPTIONS_GHC -fno-warn-duplicate-exports #-} -- | Extra functions for working with 'NonEmpty' lists. The package -- also exports the existing "Data.List.NonEmpty" functions. @@ -62,11 +63,13 @@ appendr :: [a] -> NonEmpty a -> NonEmpty a appendr l nel = foldr cons nel l +#if __GLASGOW_HASKELL__ <= 908 -- | Sort by comparing the results of a function applied to each element. -- The sort is stable, and the function is evaluated only once for -- each element. sortOn :: Ord b => (a -> b) -> NonEmpty a -> NonEmpty a sortOn f = fromList . List.sortOn f . toList +#endif -- | Return the union of two non-empty lists. Duplicates, and elements of the -- first list, are removed from the the second list, but if the first list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/extra-1.7.14/test/TestGen.hs new/extra-1.7.16/test/TestGen.hs --- old/extra-1.7.14/test/TestGen.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/extra-1.7.16/test/TestGen.hs 2001-09-09 03:46:40.000000000 +0200 @@ -2,6 +2,7 @@ -- See Generate.hs for details of how to generate {-# LANGUAGE ExtendedDefaultRules, ScopedTypeVariables, TypeApplications, ViewPatterns #-} +{-# OPTIONS_GHC -Wno-x-partial -Wno-unrecognised-warning-flags #-} module TestGen(tests) where import TestUtil import qualified Data.Ord
