Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-optparse-generic for 
openSUSE:Factory checked in at 2022-10-13 15:42:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-optparse-generic (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-optparse-generic.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-optparse-generic"

Thu Oct 13 15:42:41 2022 rev:8 rq:1008497 version:1.4.8

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-optparse-generic/ghc-optparse-generic.changes    
    2022-02-11 23:09:50.891022097 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-generic.new.2275/ghc-optparse-generic.changes
      2022-10-13 15:42:48.918816413 +0200
@@ -1,0 +2,11 @@
+Sun Sep  4 23:36:37 UTC 2022 - Peter Simons <[email protected]>
+
+- Update optparse-generic to version 1.4.8 revision 1.
+  1.4.8
+
+  * [Improve handling of 
`NonEmpty`](https://github.com/Gabriella439/optparse-generic/pull/98)
+  * [Add 
`getWithHelpWith`](https://github.com/Gabriella439/Haskell-Optparse-Generic-Library/pull/94)
+  * [Build against 
`optparse-applicative-0.17`](https://github.com/Gabriella439/Haskell-Optparse-Generic-Library/pull/92)
+  * [Build against 
`text-2.0`](https://github.com/Gabriella439/optparse-generic/pull/91)
+
+-------------------------------------------------------------------

Old:
----
  optparse-generic-1.4.7.tar.gz

New:
----
  optparse-generic-1.4.8.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-optparse-generic.spec ++++++
--- /var/tmp/diff_new_pack.u1zbJv/_old  2022-10-13 15:42:49.638817819 +0200
+++ /var/tmp/diff_new_pack.u1zbJv/_new  2022-10-13 15:42:49.646817835 +0200
@@ -18,13 +18,13 @@
 
 %global pkg_name optparse-generic
 Name:           ghc-%{pkg_name}
-Version:        1.4.7
+Version:        1.4.8
 Release:        0
 Summary:        Auto-generate a command-line parser for your datatype
 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/2.cabal#/%{pkg_name}.cabal
+Source1:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-Only-devel
 BuildRequires:  ghc-bytestring-devel

++++++ optparse-generic-1.4.7.tar.gz -> optparse-generic-1.4.8.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.4.7/CHANGELOG.md 
new/optparse-generic-1.4.8/CHANGELOG.md
--- old/optparse-generic-1.4.7/CHANGELOG.md     2001-09-09 03:46:40.000000000 
+0200
+++ new/optparse-generic-1.4.8/CHANGELOG.md     2001-09-09 03:46:40.000000000 
+0200
@@ -1,3 +1,10 @@
+1.4.8
+
+* [Improve handling of 
`NonEmpty`](https://github.com/Gabriella439/optparse-generic/pull/98)
+* [Add 
`getWithHelpWith`](https://github.com/Gabriella439/Haskell-Optparse-Generic-Library/pull/94)
+* [Build against 
`optparse-applicative-0.17`](https://github.com/Gabriella439/Haskell-Optparse-Generic-Library/pull/92)
+* [Build against 
`text-2.0`](https://github.com/Gabriella439/optparse-generic/pull/91)
+
 1.4.7
 
 * [Derive `Data` instances for exported 
types](https://github.com/Gabriel439/Haskell-Optparse-Generic-Library/pull/89)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.4.7/optparse-generic.cabal 
new/optparse-generic-1.4.8/optparse-generic.cabal
--- old/optparse-generic-1.4.7/optparse-generic.cabal   2001-09-09 
03:46:40.000000000 +0200
+++ new/optparse-generic-1.4.8/optparse-generic.cabal   2001-09-09 
03:46:40.000000000 +0200
@@ -1,11 +1,11 @@
 Name: optparse-generic
-Version: 1.4.7
+Version: 1.4.8
 Cabal-Version: >=1.10
 Build-Type: Simple
 License: BSD3
 License-File: LICENSE
-Copyright: 2016 Gabriel Gonzalez
-Author: Gabriel Gonzalez
+Copyright: 2016 Gabriella Gonzalez
+Author: Gabriella Gonzalez
 Maintainer: [email protected]
 Tested-With: GHC == 7.8.4, GHC == 7.10.2, GHC == 8.0.1
 Bug-Reports: 
https://github.com/Gabriel439/Haskell-Optparse-Generic-Library/issues
@@ -26,11 +26,11 @@
     Build-Depends:
         base                 >= 4.7      && < 5   ,
         system-filepath      >= 0.3.1    && < 0.5 ,
-        text                                < 1.3 ,
+        text                                < 2.1 ,
         transformers         >= 0.2.0.0  && < 0.7 ,
         transformers-compat  >= 0.3      && < 0.8 ,
         Only                                < 0.2 ,
-        optparse-applicative >= 0.16.0.0 && < 0.17,
+        optparse-applicative >= 0.16.0.0 && < 0.18,
         time                 >= 1.5      && < 1.13,
         void                                < 0.8 ,
         bytestring                          < 0.12
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.4.7/src/Options/Generic.hs 
new/optparse-generic-1.4.8/src/Options/Generic.hs
--- old/optparse-generic-1.4.7/src/Options/Generic.hs   2001-09-09 
03:46:40.000000000 +0200
+++ new/optparse-generic-1.4.8/src/Options/Generic.hs   2001-09-09 
03:46:40.000000000 +0200
@@ -288,6 +288,7 @@
     -- * Parsers
       getRecord
     , getRecordWith
+    , getWithHelpWith
     , getWithHelp
     , getRecordPure
     , getRecordPureWith
@@ -359,9 +360,10 @@
 import qualified Data.Typeable
 import qualified Data.ByteString
 import qualified Data.ByteString.Lazy
-import qualified Filesystem.Path.CurrentOS as Filesystem
-import qualified Options.Applicative       as Options
-import qualified Options.Applicative.Types as Options
+import qualified Filesystem.Path.CurrentOS    as Filesystem
+import qualified Options.Applicative          as Options
+import qualified Options.Applicative.Types    as Options
+import qualified Options.Applicative.NonEmpty as Options.NonEmpty
 import qualified Text.Read
 
 #if MIN_VERSION_base(4,7,0)
@@ -652,7 +654,7 @@
     parseFields = parseListOfField
 
 instance ParseField a => ParseFields (NonEmpty a) where
-    parseFields h m c d = (:|) <$> parseField h m c d <*> parseListOfField h m 
c d
+    parseFields h m c d = Options.NonEmpty.some1 (parseField h m c d)
 
 {-| Use this to annotate a field with a type-level string (i.e. a `Symbol`)
     representing the help description for that field:
@@ -1133,8 +1135,20 @@
     -- ^ Program description
     -> io (a, io ())
     -- ^ (options, io action to print help message)
-getWithHelp desc = do
-  a <- getRecordWith header mempty
+getWithHelp desc = getWithHelpWith desc mempty
+
+-- | Marshal any value that implements `ParseRecord` from the commmand line
+-- alongside an io action that prints the help message.
+getWithHelpWith
+    :: (MonadIO io, ParseRecord a)
+    => Text
+    -- ^ Program description
+    -> Options.PrefsMod
+    -- ^ 'ParserPrefs' modifiers
+    -> io (a, io ())
+    -- ^ (options, io action to print help message)
+getWithHelpWith desc prefsMods  = do
+  a <- getRecordWith header prefsMods
   return (a, help)
   where
     header = Options.header (Data.Text.unpack desc)

++++++ optparse-generic.cabal ++++++
--- /var/tmp/diff_new_pack.u1zbJv/_old  2022-10-13 15:42:49.802818140 +0200
+++ /var/tmp/diff_new_pack.u1zbJv/_new  2022-10-13 15:42:49.806818147 +0200
@@ -1,15 +1,15 @@
 Name: optparse-generic
-Version: 1.4.7
-x-revision: 2
+Version: 1.4.8
+x-revision: 1
 Cabal-Version: >=1.10
 Build-Type: Simple
 License: BSD3
 License-File: LICENSE
-Copyright: 2016 Gabriel Gonzalez
-Author: Gabriel Gonzalez
-Maintainer: [email protected]
+Copyright: 2016 Gabriella Gonzalez
+Author: Gabriella Gonzalez
+Maintainer: [email protected]
 Tested-With: GHC == 7.8.4, GHC == 7.10.2, GHC == 8.0.1
-Bug-Reports: 
https://github.com/Gabriel439/Haskell-Optparse-Generic-Library/issues
+Bug-Reports: 
https://github.com/Gabriella439/Haskell-Optparse-Generic-Library/issues
 Synopsis: Auto-generate a command-line parser for your datatype
 Description: This library auto-generates an @optparse-applicative@-compatible
     @Parser@ from any data type that derives the @Generic@ interface.
@@ -20,7 +20,7 @@
 Extra-Source-Files: CHANGELOG.md
 Source-Repository head
     Type: git
-    Location: https://github.com/Gabriel439/Haskell-Optparse-Generic-Library
+    Location: https://github.com/Gabriella439/Haskell-Optparse-Generic-Library
 
 Library
     Hs-Source-Dirs: src

Reply via email to