commit ghc-optparse-generic for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-generic for 
openSUSE:Factory checked in at 2017-09-15 22:02:36

Comparing /work/SRC/openSUSE:Factory/ghc-optparse-generic (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-optparse-generic.new (New)


Package is "ghc-optparse-generic"

Fri Sep 15 22:02:36 2017 rev:5 rq:525113 version:1.2.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-generic/ghc-optparse-generic.changes
2017-08-31 20:57:42.648901391 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-generic.new/ghc-optparse-generic.changes
   2017-09-15 22:02:38.049863708 +0200
@@ -1,0 +2,5 @@
+Thu Aug  3 15:38:38 UTC 2017 - psim...@suse.com
+
+- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
+
+---



Other differences:
--
++ ghc-optparse-generic.spec ++
--- /var/tmp/diff_new_pack.oHoDu6/_old  2017-09-15 22:02:38.733767341 +0200
+++ /var/tmp/diff_new_pack.oHoDu6/_new  2017-09-15 22:02:38.737766778 +0200
@@ -22,8 +22,8 @@
 Release:0
 Summary:Auto-generate a command-line parser for your datatype
 License:BSD-3-Clause
-Group:  Development/Languages/Other
-Url:https://hackage.haskell.org/package/%{pkg_name}
+Group:  Development/Libraries/Haskell
+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-Only-devel
@@ -36,7 +36,6 @@
 BuildRequires:  ghc-time-devel
 BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-void-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
 This library auto-generates an 'optparse-applicative'-compatible 'Parser' from
@@ -47,7 +46,7 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Other
+Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}
@@ -73,10 +72,8 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 
 %changelog




commit ghc-optparse-generic for openSUSE:Factory

2017-08-31 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-generic for 
openSUSE:Factory checked in at 2017-08-31 20:57:42

Comparing /work/SRC/openSUSE:Factory/ghc-optparse-generic (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-optparse-generic.new (New)


Package is "ghc-optparse-generic"

Thu Aug 31 20:57:42 2017 rev:4 rq:513444 version:1.2.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-generic/ghc-optparse-generic.changes
2017-05-06 18:28:49.678199194 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-generic.new/ghc-optparse-generic.changes
   2017-08-31 20:57:42.648901391 +0200
@@ -1,0 +2,5 @@
+Thu Jul 27 14:07:54 UTC 2017 - psim...@suse.com
+
+- Update to version 1.2.2.
+
+---

Old:

  optparse-generic-1.1.5.tar.gz

New:

  optparse-generic-1.2.2.tar.gz



Other differences:
--
++ ghc-optparse-generic.spec ++
--- /var/tmp/diff_new_pack.fZq39T/_old  2017-08-31 20:57:43.328805862 +0200
+++ /var/tmp/diff_new_pack.fZq39T/_new  2017-08-31 20:57:43.344803615 +0200
@@ -18,7 +18,7 @@
 
 %global pkg_name optparse-generic
 Name:   ghc-%{pkg_name}
-Version:1.1.5
+Version:1.2.2
 Release:0
 Summary:Auto-generate a command-line parser for your datatype
 License:BSD-3-Clause
@@ -26,6 +26,7 @@
 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-Only-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-optparse-applicative-devel
 BuildRequires:  ghc-rpm-macros

++ optparse-generic-1.1.5.tar.gz -> optparse-generic-1.2.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.1.5/optparse-generic.cabal 
new/optparse-generic-1.2.2/optparse-generic.cabal
--- old/optparse-generic-1.1.5/optparse-generic.cabal   2017-04-12 
18:32:44.0 +0200
+++ new/optparse-generic-1.2.2/optparse-generic.cabal   2017-07-14 
21:21:28.0 +0200
@@ -1,5 +1,5 @@
 Name: optparse-generic
-Version: 1.1.5
+Version: 1.2.2
 Cabal-Version: >=1.8.0.2
 Build-Type: Simple
 License: BSD3
@@ -27,8 +27,9 @@
 system-filepath  >= 0.3.1   && < 0.5 ,
 text   < 1.3 ,
 transformers >= 0.2.0.0 && < 0.6 ,
-optparse-applicative >= 0.12.0  && < 0.14,
-time >= 1.5 && < 1.7 ,
+Only   < 0.2 ,
+optparse-applicative >= 0.12.0  && < 0.15,
+time >= 1.5 && < 1.9 ,
 void   < 0.8 ,
 bytestring < 0.11,
 semigroups   >= 0.5.0   && < 0.19
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.1.5/src/Options/Generic.hs 
new/optparse-generic-1.2.2/src/Options/Generic.hs
--- old/optparse-generic-1.1.5/src/Options/Generic.hs   2017-04-12 
18:32:44.0 +0200
+++ new/optparse-generic-1.2.2/src/Options/Generic.hs   2017-07-14 
21:21:28.0 +0200
@@ -237,12 +237,37 @@
 -- > In an equation for ‘parseRecord’:
 -- > parseRecord = Options.Generic.$gdmparseRecord
 -- > In the instance declaration for ‘ParseRecord TheTypeOfYourRecord’
+--
+-- You can customize the library's default behavior using the
+-- `parseRecordWithModifiers` utility, like this:
+--
+-- > {-# LANGUAGE DeriveGeneric #-}
+-- > {-# LANGUAGE OverloadedStrings #-}
+-- > 
+-- > import Options.Generic
+-- > 
+-- > data Example = Example { foo :: Int, bar :: Double }
+-- > deriving (Generic, Show)
+-- > 
+-- > modifiers :: Modifiers
+-- > modifiers = defaultModifiers
+-- > { shortNameModifier = firstLetter
+-- > }
+-- >
+-- > instance ParseRecord Example where
+-- > parseRecord = parseRecordWithModifiers modifiers
+-- > 
+-- > main = do
+-- > x <- getRecord "Test program"
+-- > print (x :: Example)
 
 module Options.Generic (
 -- * Parsers
   getRecord
+, getWithHelp
 , getRecordPure
 , unwrapRecord
+, unwrapWithHelp
 , unwrapRecordPure
 , ParseRecord(..)
 , ParseFields(..)
@@ -253,6 +278,7 @@
 , parseRecordWithModifiers
 , defaultModifiers
 , lispCaseModifiers
+, firstLetter
 
 -- * Help
 , type ()(..)
@@ -279,8 +305,10 @@
 import Data.List.NonEmpty (NonEmpty((:|)))
 import Data.Proxy
 import Data.Text (Text)
+import Data.Tuple.Only (Only(..))
 import Data.Typeable (Typeable)
 import Data.Void (Void)
+import Data.Foldable (foldMap)
 import

commit ghc-optparse-generic for openSUSE:Factory

2017-05-06 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-generic for 
openSUSE:Factory checked in at 2017-05-06 18:28:48

Comparing /work/SRC/openSUSE:Factory/ghc-optparse-generic (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-optparse-generic.new (New)


Package is "ghc-optparse-generic"

Sat May  6 18:28:48 2017 rev:3 rq:491481 version:1.1.5

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-generic/ghc-optparse-generic.changes
2017-03-03 17:51:22.403167600 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-generic.new/ghc-optparse-generic.changes
   2017-05-06 18:28:49.678199194 +0200
@@ -1,0 +2,5 @@
+Wed Apr 19 13:32:37 UTC 2017 - psim...@suse.com
+
+- Update to version 1.1.5 with cabal2obs.
+
+---

Old:

  optparse-generic-1.1.4.tar.gz

New:

  optparse-generic-1.1.5.tar.gz



Other differences:
--
++ ghc-optparse-generic.spec ++
--- /var/tmp/diff_new_pack.7VsmuQ/_old  2017-05-06 18:28:50.710053594 +0200
+++ /var/tmp/diff_new_pack.7VsmuQ/_new  2017-05-06 18:28:50.714053029 +0200
@@ -18,7 +18,7 @@
 
 %global pkg_name optparse-generic
 Name:   ghc-%{pkg_name}
-Version:1.1.4
+Version:1.1.5
 Release:0
 Summary:Auto-generate a command-line parser for your datatype
 License:BSD-3-Clause

++ optparse-generic-1.1.4.tar.gz -> optparse-generic-1.1.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.1.4/optparse-generic.cabal 
new/optparse-generic-1.1.5/optparse-generic.cabal
--- old/optparse-generic-1.1.4/optparse-generic.cabal   2016-12-20 
07:26:29.0 +0100
+++ new/optparse-generic-1.1.5/optparse-generic.cabal   2017-04-12 
18:32:44.0 +0200
@@ -1,5 +1,5 @@
 Name: optparse-generic
-Version: 1.1.4
+Version: 1.1.5
 Cabal-Version: >=1.8.0.2
 Build-Type: Simple
 License: BSD3
@@ -27,7 +27,7 @@
 system-filepath  >= 0.3.1   && < 0.5 ,
 text   < 1.3 ,
 transformers >= 0.2.0.0 && < 0.6 ,
-optparse-applicative >= 0.11.0  && < 0.14,
+optparse-applicative >= 0.12.0  && < 0.14,
 time >= 1.5 && < 1.7 ,
 void   < 0.8 ,
 bytestring < 0.11,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.1.4/src/Options/Generic.hs 
new/optparse-generic-1.1.5/src/Options/Generic.hs
--- old/optparse-generic-1.1.4/src/Options/Generic.hs   2016-12-20 
07:26:29.0 +0100
+++ new/optparse-generic-1.1.5/src/Options/Generic.hs   2017-04-12 
18:32:44.0 +0200
@@ -1,12 +1,16 @@
+{-# LANGUAGE ConstraintKinds#-}
 {-# LANGUAGE CPP#-}
 {-# LANGUAGE DataKinds  #-}
 {-# LANGUAGE DefaultSignatures  #-}
 {-# LANGUAGE DeriveGeneric  #-}
+{-# LANGUAGE EmptyDataDecls #-}
 {-# LANGUAGE FlexibleInstances  #-}
 {-# LANGUAGE FlexibleContexts   #-}
 {-# LANGUAGE KindSignatures #-}
+{-# LANGUAGE MultiParamTypeClasses  #-}
 {-# LANGUAGE RecordWildCards#-}
 {-# LANGUAGE ScopedTypeVariables#-}
+{-# LANGUAGE TypeFamilies   #-}
 {-# LANGUAGE TypeOperators  #-}
 
 -- | This library auto-generates command-line parsers for data types using
@@ -86,6 +90,36 @@
 -- > $ stack runghc Example.hs -- --foo 1 --bar 2.5
 -- > Example {foo = Helpful {unHelpful = 1}, bar = Helpful {unHelpful = 2.5}}
 --
+-- To avoid this, while still being able to document your fields, you may
+-- generalize the definition of your record with a parameter 'w', and use
+-- 'unwrapRecord'.
+--
+-- > {-# LANGUAGE DataKinds  #-}
+-- > {-# LANGUAGE DeriveGeneric  #-}
+-- > {-# LANGUAGE FlexibleInstances  #-}  -- One more extension.
+-- > {-# LANGUAGE OverloadedStrings  #-}
+-- > {-# LANGUAGE StandaloneDeriving #-}  -- To derive Show
+-- > {-# LANGUAGE TypeOperators  #-}
+-- >
+-- > import Options.Generic
+-- >
+-- > data Example w = Example
+-- > { foo :: w ::: Int "Documentation for the foo flag"
+-- > , bar :: w ::: Double  "Documentation for the bar flag"
+-- > } deriving (Generic)
+-- >
+-- > instance ParseRecord (Example Wrapped)
+-- > deriving instance Show (Example Unwrapped)
+-- >
+-- > main = do
+-- > x <- unwrapRecord "Test program"
+-- > print (x :: Example Unwrapped)
+--
+-- @Example Unwrapped@ is equivalent to a record type with simple fields:
+--
+-- > $ stack runghc Example.hs -- --foo 1 --bar 2.5
+-- > Example {foo = 1, bar = 2.5}
+--
 -- For the following example

commit ghc-optparse-generic for openSUSE:Factory

2017-03-03 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-generic for 
openSUSE:Factory checked in at 2017-03-03 17:51:21

Comparing /work/SRC/openSUSE:Factory/ghc-optparse-generic (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-optparse-generic.new (New)


Package is "ghc-optparse-generic"

Fri Mar  3 17:51:21 2017 rev:2 rq:461668 version:1.1.4

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-generic/ghc-optparse-generic.changes
2016-10-22 13:14:52.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-generic.new/ghc-optparse-generic.changes
   2017-03-03 17:51:22.403167600 +0100
@@ -1,0 +2,5 @@
+Sun Feb 12 14:09:52 UTC 2017 - psim...@suse.com
+
+- Update to version 1.1.4 with cabal2obs.
+
+---

Old:

  optparse-generic-1.1.1.tar.gz

New:

  optparse-generic-1.1.4.tar.gz



Other differences:
--
++ ghc-optparse-generic.spec ++
--- /var/tmp/diff_new_pack.4kjIap/_old  2017-03-03 17:51:23.163060276 +0100
+++ /var/tmp/diff_new_pack.4kjIap/_new  2017-03-03 17:51:23.167059711 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-optparse-generic
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,25 +18,24 @@
 
 %global pkg_name optparse-generic
 Name:   ghc-%{pkg_name}
-Version:1.1.1
+Version:1.1.4
 Release:0
 Summary:Auto-generate a command-line parser for your datatype
 License:BSD-3-Clause
-Group:  System/Libraries
+Group:  Development/Languages/Other
 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
-# Begin cabal-rpm deps:
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-optparse-applicative-devel
 BuildRequires:  ghc-rpm-macros
+BuildRequires:  ghc-semigroups-devel
 BuildRequires:  ghc-system-filepath-devel
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-time-devel
 BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-void-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-# End cabal-rpm deps
 
 %description
 This library auto-generates an 'optparse-applicative'-compatible 'Parser' from
@@ -60,15 +59,12 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %post devel
 %ghc_pkg_recache
 

++ optparse-generic-1.1.1.tar.gz -> optparse-generic-1.1.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.1.1/optparse-generic.cabal 
new/optparse-generic-1.1.4/optparse-generic.cabal
--- old/optparse-generic-1.1.1/optparse-generic.cabal   2016-05-28 
08:13:20.0 +0200
+++ new/optparse-generic-1.1.4/optparse-generic.cabal   2016-12-20 
07:26:29.0 +0100
@@ -1,5 +1,5 @@
 Name: optparse-generic
-Version: 1.1.1
+Version: 1.1.4
 Cabal-Version: >=1.8.0.2
 Build-Type: Simple
 License: BSD3
@@ -27,10 +27,12 @@
 system-filepath  >= 0.3.1   && < 0.5 ,
 text   < 1.3 ,
 transformers >= 0.2.0.0 && < 0.6 ,
-optparse-applicative >= 0.11.0  && < 0.13,
+optparse-applicative >= 0.11.0  && < 0.14,
 time >= 1.5 && < 1.7 ,
 void   < 0.8 ,
-bytestring < 0.11
+bytestring < 0.11,
+semigroups   >= 0.5.0   && < 0.19
+
 if impl(ghc < 7.8)
 Build-Depends:
 singletons   >= 0.10.0  && < 1.0 ,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-generic-1.1.1/src/Options/Generic.hs 
new/optparse-generic-1.1.4/src/Options/Generic.hs
--- old/optparse-generic-1.1.1/src/Options/Generic.hs   2016-05-28 
07:36:51.0 +0200
+++ new/optparse-generic-1.1.4/src/Options/Generic.hs   2016-12-20 
07:26:29.0 +0100
@@ -235,6 +235,7 @@
 import Control.Monad.IO.Class (MonadIO(..))
 import Data.Char (toLower, toUpper)
 import Data.Monoid
+import Data.List.NonEmpty (NonEmpty((:|)))
 import Data.Proxy
 import Data.Text (Text)
 import Data.Typeable (Typeable)
@@ -476,6 +477,9 @@
 instance ParseField a => ParseFields [a] where
 parseFields = parseListOfField
 
+instance ParseField a => ParseFields (NonEmpty a) where
+parseFields h m = (:|) <$> parseField h m <*> parseListOfFie