Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-cmdargs for openSUSE:Factory checked in at 2023-04-04 21:19:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-cmdargs (Old) and /work/SRC/openSUSE:Factory/.ghc-cmdargs.new.19717 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-cmdargs" Tue Apr 4 21:19:06 2023 rev:14 rq:1075809 version:0.10.22 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-cmdargs/ghc-cmdargs.changes 2021-03-10 08:56:40.322852861 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-cmdargs.new.19717/ghc-cmdargs.changes 2023-04-04 21:19:12.432726305 +0200 @@ -1,0 +2,12 @@ +Thu Mar 30 17:06:12 UTC 2023 - Peter Simons <[email protected]> + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Mon Mar 13 11:19:44 UTC 2023 - Peter Simons <[email protected]> + +- Update cmdargs to version 0.10.22. + 0.10.22, released 2023-03-13 + #68, support GHC 9.6 + +------------------------------------------------------------------- Old: ---- cmdargs-0.10.21.tar.gz New: ---- cmdargs-0.10.22.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-cmdargs.spec ++++++ --- /var/tmp/diff_new_pack.qYewvK/_old 2023-04-04 21:19:12.908729340 +0200 +++ /var/tmp/diff_new_pack.qYewvK/_new 2023-04-04 21:19:12.916729391 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-cmdargs # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,19 +17,26 @@ %global pkg_name cmdargs +%global pkgver %{pkg_name}-%{version} Name: ghc-%{pkg_name} -Version: 0.10.21 +Version: 0.10.22 Release: 0 Summary: Command line argument processing 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 BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof BuildRequires: ghc-filepath-devel +BuildRequires: ghc-filepath-prof BuildRequires: ghc-process-devel +BuildRequires: ghc-process-prof BuildRequires: ghc-rpm-macros BuildRequires: ghc-template-haskell-devel +BuildRequires: ghc-template-haskell-prof BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof ExcludeArch: %{ix86} %description @@ -62,6 +69,22 @@ %description devel This package provides the Haskell %{pkg_name} library development files. +%package -n ghc-%{pkg_name}-doc +Summary: Haskell %{pkg_name} library documentation +Requires: ghc-filesystem +BuildArch: noarch + +%description -n ghc-%{pkg_name}-doc +This package provides the Haskell %{pkg_name} library documentation. + +%package -n ghc-%{pkg_name}-prof +Summary: Haskell %{pkg_name} profiling library +Requires: ghc-%{pkg_name}-devel = %{version}-%{release} +Supplements: (ghc-%{pkg_name}-devel and ghc-prof) + +%description -n ghc-%{pkg_name}-prof +This package provides the Haskell %{pkg_name} profiling library. + %prep %autosetup -n %{pkg_name}-%{version} @@ -83,4 +106,9 @@ %files devel -f %{name}-devel.files %doc CHANGES.txt README.md +%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + %changelog ++++++ cmdargs-0.10.21.tar.gz -> cmdargs-0.10.22.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cmdargs-0.10.21/CHANGES.txt new/cmdargs-0.10.22/CHANGES.txt --- old/cmdargs-0.10.21/CHANGES.txt 2021-02-14 11:20:01.000000000 +0100 +++ new/cmdargs-0.10.22/CHANGES.txt 2001-09-09 03:46:40.000000000 +0200 @@ -1,5 +1,7 @@ Changelog for CmdArgs +0.10.22, released 2023-03-13 + #68, support GHC 9.6 0.10.21, released 2021-02-14 Handle GHC 9.0 optimisations Remove support for GHC 7.4 to 7.8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cmdargs-0.10.21/Data/Generics/Any/Prelude.hs new/cmdargs-0.10.22/Data/Generics/Any/Prelude.hs --- old/cmdargs-0.10.21/Data/Generics/Any/Prelude.hs 2017-11-12 21:46:46.000000000 +0100 +++ new/cmdargs-0.10.22/Data/Generics/Any/Prelude.hs 2001-09-09 03:46:40.000000000 +0200 @@ -46,7 +46,9 @@ isString x = typeName x == "[Char]" -isList x = typeShell x == "[]" +-- GHC 9.6 changes from [] to List, so accept either +isList x = ts == "[]" || ts == "List" + where ts = typeShell x isMaybe x = typeShell x == "Maybe" isTuple x = isJust $ readTupleType $ typeShell x diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cmdargs-0.10.21/LICENSE new/cmdargs-0.10.22/LICENSE --- old/cmdargs-0.10.21/LICENSE 2021-01-31 22:19:23.000000000 +0100 +++ new/cmdargs-0.10.22/LICENSE 2001-09-09 03:46:40.000000000 +0200 @@ -1,4 +1,4 @@ -Copyright Neil Mitchell 2009-2021. +Copyright Neil Mitchell 2009-2023. 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/cmdargs-0.10.21/README.md new/cmdargs-0.10.22/README.md --- old/cmdargs-0.10.21/README.md 2020-11-24 11:19:42.000000000 +0100 +++ new/cmdargs-0.10.22/README.md 2001-09-09 03:46:40.000000000 +0200 @@ -1,4 +1,4 @@ -# CmdArgs: Easy Command Line Processing [](https://hackage.haskell.org/package/cmdargs) [](https://www.stackage.org/package/cmdargs) [](https://github.com/ndmitchell/cmdargs/actions) +# CmdArgs: Easy Command Line Processing [](https://hackage.haskell.org/package/cmdargs) [](https://www.stackage.org/package/cmdargs) [](https://github.com/ndmitchell/cmdargs/actions) CmdArgs is a Haskell library for defining command line parsers. The two features that make it a better choice than the standard [getopt library](http://haskell.org/ghc/docs/latest/html/libraries/base/System-Console-GetOpt.html) are: @@ -16,10 +16,10 @@ ``` Despite being very concise, this processor is already fairly well featured: - $ runhaskell Sample.hs --hello=world + $ runghc Sample.hs --hello=world Sample {hello = "world"} - $ runhaskell Sample.hs --help + $ runghc Sample.hs --help Sample v1, (C) Neil Mitchell 2009 sample [FLAG] @@ -67,13 +67,13 @@ Now we have a reasonably functional command line argument processor. Some sample interactions are: - $ runhaskell Sample.hs --hello=world + $ runghc Sample.hs --hello=world Sample {hello = "world"} - $ runhaskell Sample.hs --version + $ runghc Sample.hs --version The sample program - $ runhaskell Sample.hs --help + $ runghc Sample.hs --help The sample program sample [OPTIONS] @@ -116,13 +116,13 @@ ``` Compared to the first example, we now have multiple constructors, and a sample value for each constructor is passed to `cmdArgs`. Some sample interactions with this command line are: - $ runhaskell Sample.hs hello --whom=world + $ runghc Sample.hs hello --whom=world Hello {whom = "world"} - $ runhaskell Sample.hs goodbye + $ runghc Sample.hs goodbye Goodbye - $ runhaskell Sample.hs --help + $ runghc Sample.hs --help The sample program sample [OPTIONS] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cmdargs-0.10.21/Setup.hs new/cmdargs-0.10.22/Setup.hs --- old/cmdargs-0.10.21/Setup.hs 2015-04-18 22:17:36.000000000 +0200 +++ new/cmdargs-0.10.22/Setup.hs 2001-09-09 03:46:40.000000000 +0200 @@ -1,4 +1,2 @@ -#! /usr/bin/runhaskell - import Distribution.Simple main = defaultMain diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cmdargs-0.10.21/System/Console/CmdArgs/Explicit/Process.hs new/cmdargs-0.10.22/System/Console/CmdArgs/Explicit/Process.hs --- old/cmdargs-0.10.21/System/Console/CmdArgs/Explicit/Process.hs 2019-05-26 13:33:07.000000000 +0200 +++ new/cmdargs-0.10.22/System/Console/CmdArgs/Explicit/Process.hs 2001-09-09 03:46:40.000000000 +0200 @@ -23,7 +23,7 @@ | null (fst $ modeArgs m) && isNothing (snd $ modeArgs m) && args /= [] && not (null $ modeModes m) && not ("-" `isPrefixOf` concat args) -> Left $ missing "mode" $ concatMap modeNames $ modeModes m - | otherwise -> either Left (modeCheck m) $ processFlags m (modeValue m) args + | otherwise -> modeCheck m =<< processFlags m (modeValue m) args where (find,a,as) = case args of [] -> (NotFound,"",[]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cmdargs-0.10.21/System/Console/CmdArgs/Explicit.hs new/cmdargs-0.10.22/System/Console/CmdArgs/Explicit.hs --- old/cmdargs-0.10.21/System/Console/CmdArgs/Explicit.hs 2019-05-26 13:32:48.000000000 +0200 +++ new/cmdargs-0.10.22/System/Console/CmdArgs/Explicit.hs 2001-09-09 03:46:40.000000000 +0200 @@ -173,7 +173,7 @@ Right (a,b) -> Right $ f a b v format :: String -> Either String (HelpFormat,TextFormat) - format xs = foldl (\acc x -> either Left (f x) acc) (Right def) (sep xs) + format xs = foldl (\acc x -> f x =<< acc) (Right def) (sep xs) where sep = words . map (\x -> if x `elem` ":," then ' ' else toLower x) f x (a,b) = case x of diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cmdargs-0.10.21/System/Console/CmdArgs/Test/SplitJoin.hs new/cmdargs-0.10.22/System/Console/CmdArgs/Test/SplitJoin.hs --- old/cmdargs-0.10.21/System/Console/CmdArgs/Test/SplitJoin.hs 2018-06-08 21:36:11.000000000 +0200 +++ new/cmdargs-0.10.22/System/Console/CmdArgs/Test/SplitJoin.hs 2001-09-09 03:46:40.000000000 +0200 @@ -28,7 +28,7 @@ writeFile src "import System.Environment\nmain = print =<< getArgs\n" quickCheckWith stdArgs{chatty=False} $ \(CmdLine x) -> unsafePerformIO $ do putStr $ ",(,) " ++ (show x) ++ " " - system $ "runhaskell \"" ++ src ++ "\" " ++ x + system $ "runghc \"" ++ src ++ "\" " ++ x return True diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cmdargs-0.10.21/cmdargs.cabal new/cmdargs-0.10.22/cmdargs.cabal --- old/cmdargs-0.10.21/cmdargs.cabal 2021-02-14 11:23:25.000000000 +0100 +++ new/cmdargs-0.10.22/cmdargs.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,13 +1,13 @@ -cabal-version: >= 1.18 +cabal-version: 1.18 build-type: Simple name: cmdargs -version: 0.10.21 +version: 0.10.22 license: BSD3 license-file: LICENSE category: Console author: Neil Mitchell <[email protected]> maintainer: Neil Mitchell <[email protected]> -copyright: Neil Mitchell 2009-2021 +copyright: Neil Mitchell 2009-2023 synopsis: Command line argument processing description: This library provides an easy way to define command line parsers. Most users @@ -33,7 +33,7 @@ extra-doc-files: README.md CHANGES.txt -tested-with: GHC==9.0, GHC==8.10, GHC==8.8, GHC==8.6, GHC==8.4, GHC==8.2, GHC==8.0 +tested-with: GHC==9.2, GHC==9.0, GHC==8.10, GHC==8.8, GHC==8.6, GHC==8.4, GHC==8.2, GHC==8.0 source-repository head type: git
