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 2023-01-18 13:10:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-optparse-generic (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-optparse-generic.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-optparse-generic"

Wed Jan 18 13:10:13 2023 rev:9 rq:1059091 version:1.4.9

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-optparse-generic/ghc-optparse-generic.changes    
    2022-10-13 15:42:48.918816413 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-generic.new.32243/ghc-optparse-generic.changes
     2023-01-18 13:10:35.756744550 +0100
@@ -1,0 +2,8 @@
+Tue Jan 10 23:34:03 UTC 2023 - Peter Simons <[email protected]>
+
+- Update optparse-generic to version 1.4.9.
+  1.4.9
+
+  * [Add `Data` instance for 
`Unwrapped`](https://github.com/Gabriella439/optparse-generic/pull/100)
+
+-------------------------------------------------------------------

Old:
----
  optparse-generic-1.4.8.tar.gz
  optparse-generic.cabal

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

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

Other differences:
------------------
++++++ ghc-optparse-generic.spec ++++++
--- /var/tmp/diff_new_pack.qDIBlu/_old  2023-01-18 13:10:36.832750928 +0100
+++ /var/tmp/diff_new_pack.qDIBlu/_new  2023-01-18 13:10:36.832750928 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-optparse-generic
 #
-# Copyright (c) 2022 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
@@ -18,13 +18,13 @@
 
 %global pkg_name optparse-generic
 Name:           ghc-%{pkg_name}
-Version:        1.4.8
+Version:        1.4.9
 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/1.cabal#/%{pkg_name}.cabal
+BuildRequires:  chrpath
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-Only-devel
 BuildRequires:  ghc-bytestring-devel
@@ -58,13 +58,13 @@
 
 %prep
 %autosetup -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build
 
 %install
 %ghc_lib_install
+%ghc_fix_rpath %{pkg_name}-%{version}
 
 %post devel
 %ghc_pkg_recache
@@ -74,6 +74,8 @@
 
 %files -f %{name}.files
 %license LICENSE
+%{_bindir}/optparse-generic-example-unwrap-options
+%{_bindir}/optparse-generic-example-unwrap-with-help
 
 %files devel -f %{name}-devel.files
 %doc CHANGELOG.md

++++++ optparse-generic-1.4.8.tar.gz -> optparse-generic-1.4.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.4.8/CHANGELOG.md 
new/optparse-generic-1.4.9/CHANGELOG.md
--- old/optparse-generic-1.4.8/CHANGELOG.md     2001-09-09 03:46:40.000000000 
+0200
+++ new/optparse-generic-1.4.9/CHANGELOG.md     2001-09-09 03:46:40.000000000 
+0200
@@ -1,3 +1,7 @@
+1.4.9
+
+* [Add `Data` instance for 
`Unwrapped`](https://github.com/Gabriella439/optparse-generic/pull/100)
+
 1.4.8
 
 * [Improve handling of 
`NonEmpty`](https://github.com/Gabriella439/optparse-generic/pull/98)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.4.8/LICENSE 
new/optparse-generic-1.4.9/LICENSE
--- old/optparse-generic-1.4.8/LICENSE  2001-09-09 03:46:40.000000000 +0200
+++ new/optparse-generic-1.4.9/LICENSE  2001-09-09 03:46:40.000000000 +0200
@@ -1,4 +1,4 @@
-Copyright (c) 2016 Gabriel Gonzalez
+Copyright (c) 2016 Gabriella Gonzalez
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without 
modification,
@@ -8,7 +8,7 @@
     * Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
-    * Neither the name of Gabriel Gonzalez nor the names of other contributors
+    * Neither the name of Gabriella Gonzalez nor the names of other 
contributors
       may be used to endorse or promote products derived from this software
       without specific prior written permission.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.4.8/examples/unwrap-options.hs 
new/optparse-generic-1.4.9/examples/unwrap-options.hs
--- old/optparse-generic-1.4.8/examples/unwrap-options.hs       1970-01-01 
01:00:00.000000000 +0100
+++ new/optparse-generic-1.4.9/examples/unwrap-options.hs       2001-09-09 
03:46:40.000000000 +0200
@@ -0,0 +1,22 @@
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE DeriveGeneric #-}
+{-# LANGUAGE FlexibleInstances #-}
+{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE StandaloneDeriving #-}
+{-# LANGUAGE TypeOperators #-}
+
+import Options.Generic
+
+data Options w = Options
+  { a :: w ::: Int <?> "Int option"
+  , b :: w ::: Bool <?> "Bool option"
+  , c :: w ::: String <?> "String option"
+  } deriving Generic
+
+instance ParseRecord (Options Wrapped)
+deriving instance Show (Options Unwrapped)
+
+main :: IO ()
+main = do
+  opts <- unwrapRecord "unwrap-example"
+  print (opts :: Options Unwrapped)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.4.8/examples/unwrap-with-help.hs 
new/optparse-generic-1.4.9/examples/unwrap-with-help.hs
--- old/optparse-generic-1.4.8/examples/unwrap-with-help.hs     1970-01-01 
01:00:00.000000000 +0100
+++ new/optparse-generic-1.4.9/examples/unwrap-with-help.hs     2001-09-09 
03:46:40.000000000 +0200
@@ -0,0 +1,24 @@
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE DeriveGeneric #-}
+{-# LANGUAGE FlexibleInstances #-}
+{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE StandaloneDeriving #-}
+{-# LANGUAGE TypeOperators #-}
+
+import Options.Generic
+
+data Options w = Options
+  { a :: w ::: Int <?> "Int option -- must be divisible by 10"
+  , b :: w ::: Bool <?> "Bool option"
+  , c :: w ::: String <?> "String option"
+  } deriving Generic
+
+instance ParseRecord (Options Wrapped)
+deriving instance Show (Options Unwrapped)
+
+main :: IO ()
+main = do
+  (opts, help) <- unwrapWithHelp "unwrap-example"
+  if (a opts) `rem` 10 == 0
+  then print (opts :: Options Unwrapped)
+  else help
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.4.8/optparse-generic.cabal 
new/optparse-generic-1.4.9/optparse-generic.cabal
--- old/optparse-generic-1.4.8/optparse-generic.cabal   2001-09-09 
03:46:40.000000000 +0200
+++ new/optparse-generic-1.4.9/optparse-generic.cabal   2001-09-09 
03:46:40.000000000 +0200
@@ -1,14 +1,14 @@
 Name: optparse-generic
-Version: 1.4.8
+Version: 1.4.9
 Cabal-Version: >=1.10
 Build-Type: Simple
 License: BSD3
 License-File: LICENSE
 Copyright: 2016 Gabriella Gonzalez
 Author: Gabriella Gonzalez
-Maintainer: [email protected]
+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.
@@ -19,7 +19,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
@@ -47,3 +47,21 @@
     Exposed-Modules: Options.Generic
     GHC-Options: -Wall
     Default-Language: Haskell2010
+
+executable optparse-generic-example-unwrap-options
+  ghc-options: -Wall
+  default-language: Haskell2010
+  hs-source-dirs: examples
+  main-is: unwrap-options.hs
+  build-depends:
+    base   >= 4.7 && <5,
+    optparse-generic
+
+executable optparse-generic-example-unwrap-with-help
+  ghc-options: -Wall
+  default-language: Haskell2010
+  hs-source-dirs: examples
+  main-is: unwrap-with-help.hs
+  build-depends:
+    base   >= 4.7 && <5,
+    optparse-generic
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.4.8/src/Options/Generic.hs 
new/optparse-generic-1.4.9/src/Options/Generic.hs
--- old/optparse-generic-1.4.8/src/Options/Generic.hs   2001-09-09 
03:46:40.000000000 +0200
+++ new/optparse-generic-1.4.9/src/Options/Generic.hs   2001-09-09 
03:46:40.000000000 +0200
@@ -1227,6 +1227,7 @@
 
 -- | Flag to unwrap fields annotated using '(<?>)'
 data Unwrapped
+    deriving (Data)
 
 -- | Constraint for types whose fields can be unwrapped
 type Unwrappable f = (Generic (f Wrapped), Generic (f Unwrapped), 
GenericUnwrappable (Rep (f Wrapped)) (Rep (f Unwrapped)))

Reply via email to