commit ghc-optparse-applicative for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2020-08-28 21:35:39

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


Package is "ghc-optparse-applicative"

Fri Aug 28 21:35:39 2020 rev:17 rq:829368 version:0.16.0.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2020-06-19 17:16:19.130698933 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new.3399/ghc-optparse-applicative.changes
  2020-08-28 21:35:41.788732853 +0200
@@ -1,0 +2,52 @@
+Tue Aug 18 10:45:37 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---
+Thu Aug 13 15:56:41 UTC 2020 - psim...@suse.com
+
+- Update optparse-applicative to version 0.16.0.0.
+  ## Version 0.16.0.0 (14 Aug 2020)
+
+  - Add `Options.Applicative.NonEmpty.some1` function, which
+parses options the same as `some1` from base, but doesn't
+cause duplicates in the usage texts.
+
+  - Further improve help text generation in the presence
+of optional values when nesting is involved, and many and
+some when displayed with a suffix.
+
+  - Add "global" options to the usage texts for subcommands.
+When using subcommands, a "global options" section can
+now appear below the options and commands sections.
+
+Global options are *off* by default, to enable them, use
+the `helpShowGlobals` modifier.
+
+The `noGlobal` builder will suppress a single option being
+displayed in the global options list.
+
+Fixes issues:
+  * \# 175 - List detailed subparser documentation with `--help`
+  * \# 294 - Displaying global options when listing options for a command.
+  * \# 359 - Subcommand help text lacks required parent command arguments
+
+  - Allow the `--help` option to take the name of a command.
+Usage without any arguments is the same, but now, when an
+argument is given, if it is the name of a currently
+reachable command, the help text for that command will
+be show.
+
+Fixes issues:
+  * \# 379 - cmd --help subcmd is not the same as cmd subcmd --help
+
+  - Updated dependency bounds.
+
+  - Add builder for the all positional parser policy.
+
+  - Remove deprecated functions
+  * nullOption
+  * execParserMaybe
+  * customExecParserMaybe
+
+---

Old:

  optparse-applicative-0.15.1.0.tar.gz
  optparse-applicative.cabal

New:

  optparse-applicative-0.16.0.0.tar.gz



Other differences:
--
++ ghc-optparse-applicative.spec ++
--- /var/tmp/diff_new_pack.hzz9As/_old  2020-08-28 21:35:42.832733347 +0200
+++ /var/tmp/diff_new_pack.hzz9As/_new  2020-08-28 21:35:42.836733349 +0200
@@ -19,13 +19,12 @@
 %global pkg_name optparse-applicative
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.15.1.0
+Version:0.16.0.0
 Release:0
 Summary:Utilities and combinators for parsing command line options
 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:  ghc-Cabal-devel
 BuildRequires:  ghc-ansi-wl-pprint-devel
 BuildRequires:  ghc-process-devel
@@ -39,11 +38,12 @@
 
 %description
 Optparse-applicative is a haskell library for parsing options on the command
-line, providing a powerful applicative interface for composing these options.
+line, and providing a powerful applicative interface for composing them.
 
 optparse-applicative takes care of reading and validating the arguments passed
 to the command line, handling and reporting errors, generating a usage line, a
-comprehensive help screen, and enabling context-sensitive bash completions.
+comprehensive help screen, and enabling context-sensitive bash, zsh, and fish
+completions.
 
 See the included README for detailed instructions and examples, which is also
 available on github .
@@ -60,8 +60,7 @@
 files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
+%autosetup -n %{pkg_name}-%{version}
 
 %build
 %ghc_lib_build

++ optparse-applicative-0.15.1.0.tar.gz -> 
optparse-applicative-0.16.0.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 

commit ghc-optparse-applicative for openSUSE:Factory

2020-06-19 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2020-06-19 17:16:18

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


Package is "ghc-optparse-applicative"

Fri Jun 19 17:16:18 2020 rev:16 rq:815143 version:0.15.1.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2020-05-11 13:36:03.696451955 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new.3606/ghc-optparse-applicative.changes
  2020-06-19 17:16:19.130698933 +0200
@@ -1,0 +2,5 @@
+Tue Jun 16 11:14:25 UTC 2020 - Peter Simons 
+
+- Re-generate file with latest version of spec-cleaner.
+
+---



Other differences:
--
++ ghc-optparse-applicative.spec ++
--- /var/tmp/diff_new_pack.bLP8LU/_old  2020-06-19 17:16:20.762704019 +0200
+++ /var/tmp/diff_new_pack.bLP8LU/_new  2020-06-19 17:16:20.766704031 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-optparse-applicative
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed




commit ghc-optparse-applicative for openSUSE:Factory

2020-05-11 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2020-05-11 13:35:35

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


Package is "ghc-optparse-applicative"

Mon May 11 13:35:35 2020 rev:15 rq:801037 version:0.15.1.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2019-12-27 13:55:51.152730321 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new.2738/ghc-optparse-applicative.changes
  2020-05-11 13:36:03.696451955 +0200
@@ -1,0 +2,5 @@
+Thu May  7 08:08:23 UTC 2020 - Peter Simons 
+
+- Update Cabal file to get more accurate dependency information.
+
+---

New:

  optparse-applicative.cabal



Other differences:
--
++ ghc-optparse-applicative.spec ++
--- /var/tmp/diff_new_pack.0M49t8/_old  2020-05-11 13:36:04.892454462 +0200
+++ /var/tmp/diff_new_pack.0M49t8/_new  2020-05-11 13:36:04.892454462 +0200
@@ -25,6 +25,7 @@
 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:  ghc-Cabal-devel
 BuildRequires:  ghc-ansi-wl-pprint-devel
 BuildRequires:  ghc-process-devel
@@ -60,6 +61,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ optparse-applicative.cabal ++
name:optparse-applicative
version: 0.15.1.0
x-revision: 1
synopsis:Utilities and combinators for parsing command line options
description:
optparse-applicative is a haskell library for parsing options
on the command line, providing a powerful applicative interface
for composing these options.
.
optparse-applicative takes care of reading and validating the
arguments passed to the command line, handling and reporting
errors, generating a usage line, a comprehensive help screen,
and enabling context-sensitive bash completions.
.
See the included README for detailed instructions and examples,
which is also available on github
.
license: BSD3
license-file:LICENSE
author:  Paolo Capriotti, Huw Campbell
maintainer:  huw.campb...@gmail.com
copyright:   (c) 2012-2017 Paolo Capriotti 
category:System, CLI, Options, Parsing
build-type:  Simple
cabal-version:   >= 1.8
extra-source-files:  CHANGELOG.md
 README.md
 tests/alt.err.txt
 tests/cabal.err.txt
 tests/carry.err.txt
 tests/commands.err.txt
 tests/commands_header.err.txt
 tests/commands_header_full.err.txt
 tests/dropback.err.txt
 tests/hello.err.txt
 tests/helponempty.err.txt
 tests/helponemptysub.err.txt
 tests/long_equals.err.txt
 tests/formatting.err.txt
 tests/nested.err.txt
 tests/optional.err.txt
 tests/nested_optional.err.txt
 tests/subparsers.err.txt

homepage:https://github.com/pcapriotti/optparse-applicative
bug-reports: https://github.com/pcapriotti/optparse-applicative/issues
tested-with:
  GHC==7.0.4,
  GHC==7.2.2,
  GHC==7.4.2,
  GHC==7.6.3,
  GHC==7.8.4,
  GHC==7.10.3,
  GHC==8.0.2,
  GHC==8.2.2,
  GHC==8.4.4,
  GHC==8.6.5,
  GHC==8.8.1

source-repository head
  type: git
  location: https://github.com/pcapriotti/optparse-applicative.git

library
  hs-source-dirs:  src
  ghc-options: -Wall

  -- See https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0
  if impl(ghc >= 8.0)
ghc-options:  -Wno-redundant-constraints -Wcompat 
-Wnoncanonical-monad-instances
if impl(ghc < 8.8)
  ghc-options: -Wnoncanonical-monadfail-instances

  exposed-modules: Options.Applicative
 , Options.Applicative.Arrows
 , Options.Applicative.BashCompletion
 , Options.Applicative.Builder
 , Options.Applicative.Builder.Completer
 , Options.Applicative.Builder.Internal
 , Options.Applicative.Common
 

commit ghc-optparse-applicative for openSUSE:Factory

2019-12-27 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2019-12-27 13:55:46

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


Package is "ghc-optparse-applicative"

Fri Dec 27 13:55:46 2019 rev:14 rq:759463 version:0.15.1.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2019-10-18 14:34:25.100085494 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new.6675/ghc-optparse-applicative.changes
  2019-12-27 13:55:51.152730321 +0100
@@ -1,0 +2,5 @@
+Fri Nov  8 16:14:20 UTC 2019 - Peter Simons 
+
+- Drop obsolete group attributes.
+
+---



Other differences:
--
++ ghc-optparse-applicative.spec ++
--- /var/tmp/diff_new_pack.TZPKEW/_old  2019-12-27 13:55:51.696730584 +0100
+++ /var/tmp/diff_new_pack.TZPKEW/_new  2019-12-27 13:55:51.696730584 +0100
@@ -23,7 +23,6 @@
 Release:0
 Summary:Utilities and combinators for parsing command line options
 License:BSD-3-Clause
-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
@@ -50,7 +49,6 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}




commit ghc-optparse-applicative for openSUSE:Factory

2019-10-18 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2019-10-18 14:34:23

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


Package is "ghc-optparse-applicative"

Fri Oct 18 14:34:23 2019 rev:13 rq:737206 version:0.15.1.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2019-07-29 17:26:40.638295860 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new.2352/ghc-optparse-applicative.changes
  2019-10-18 14:34:25.100085494 +0200
@@ -1,0 +2,9 @@
+Fri Sep 13 10:29:54 UTC 2019 - psim...@suse.com
+
+- Update optparse-applicative to version 0.15.1.0.
+  Upstream has edited the change log file since the last release in
+  a non-trivial way, i.e. they did more than just add a new entry
+  at the top. You can review the file at:
+  
http://hackage.haskell.org/package/optparse-applicative-0.15.1.0/src/CHANGELOG.md
+
+---

Old:

  optparse-applicative-0.15.0.0.tar.gz

New:

  optparse-applicative-0.15.1.0.tar.gz



Other differences:
--
++ ghc-optparse-applicative.spec ++
--- /var/tmp/diff_new_pack.odAh5Y/_old  2019-10-18 14:34:25.720083879 +0200
+++ /var/tmp/diff_new_pack.odAh5Y/_new  2019-10-18 14:34:25.724083869 +0200
@@ -19,7 +19,7 @@
 %global pkg_name optparse-applicative
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.15.0.0
+Version:0.15.1.0
 Release:0
 Summary:Utilities and combinators for parsing command line options
 License:BSD-3-Clause

++ optparse-applicative-0.15.0.0.tar.gz -> 
optparse-applicative-0.15.1.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-applicative-0.15.0.0/CHANGELOG.md 
new/optparse-applicative-0.15.1.0/CHANGELOG.md
--- old/optparse-applicative-0.15.0.0/CHANGELOG.md  2019-07-05 
10:59:39.0 +0200
+++ new/optparse-applicative-0.15.1.0/CHANGELOG.md  2019-09-12 
13:53:27.0 +0200
@@ -1,3 +1,13 @@
+## Version 0.15.1.0 (12 Sep 2019)
+
+- Improve printing of brief descriptions for parsers.
+  Previously, the logical structure of the parser,
+  such as alternative groups and segments which must
+  be defined together, did not influence the layout of
+  the brief description. This could lead to some help
+  texts being difficult to read.  Now, we use nesting
+  and forced line breaks to help improve readability.
+
 ## Version 0.15.0.0 (05 Jul 2019)
 
 - Add support for GHC 8.8.1.
@@ -11,7 +21,7 @@
 - Improve rendering of complex nested parse structures.
   Previously, brackets and parenthesis did not respect
   whether or not options had to be defined together.
-  Now the parse tree is more accurately represeted in
+  Now the parse tree is more accurately represented in
   the help text.
 
 - Add `helpLongEquals` modifier, which will change how
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-applicative-0.15.0.0/README.md 
new/optparse-applicative-0.15.1.0/README.md
--- old/optparse-applicative-0.15.0.0/README.md 2019-07-05 10:59:39.0 
+0200
+++ new/optparse-applicative-0.15.1.0/README.md 2019-09-12 13:53:27.0 
+0200
@@ -5,8 +5,8 @@
 [![Hackage-Deps][hackage-deps-png]][hackage-deps]
 
 optparse-applicative is a haskell library for parsing options on
-the command line, providing a powerful [applicative] interface
-for composing these options.
+the command line, and providing a powerful [applicative] interface
+for composing them.
 
 optparse-applicative takes care of reading and validating the
 arguments passed to the command line, handling and reporting errors,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/optparse-applicative-0.15.0.0/optparse-applicative.cabal 
new/optparse-applicative-0.15.1.0/optparse-applicative.cabal
--- old/optparse-applicative-0.15.0.0/optparse-applicative.cabal
2019-07-05 10:59:39.0 +0200
+++ new/optparse-applicative-0.15.1.0/optparse-applicative.cabal
2019-09-12 13:53:27.0 +0200
@@ -1,5 +1,5 @@
 name:optparse-applicative
-version: 0.15.0.0
+version: 0.15.1.0
 synopsis:Utilities and combinators for parsing command line options
 description:
 optparse-applicative is a haskell library for parsing options
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/optparse-applicative-0.15.0.0/src/Options/Applicative/Help/Core.hs 

commit ghc-optparse-applicative for openSUSE:Factory

2019-07-29 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2019-07-29 17:26:35

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


Package is "ghc-optparse-applicative"

Mon Jul 29 17:26:35 2019 rev:12 rq:715416 version:0.15.0.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2019-06-19 21:12:40.054758081 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new.4126/ghc-optparse-applicative.changes
  2019-07-29 17:26:40.638295860 +0200
@@ -1,0 +2,9 @@
+Sat Jul  6 02:02:17 UTC 2019 - psim...@suse.com
+
+- Update optparse-applicative to version 0.15.0.0.
+  Upstream has edited the change log file since the last release in
+  a non-trivial way, i.e. they did more than just add a new entry
+  at the top. You can review the file at:
+  
http://hackage.haskell.org/package/optparse-applicative-0.15.0.0/src/CHANGELOG.md
+
+---

Old:

  optparse-applicative-0.14.3.0.tar.gz
  optparse-applicative.cabal

New:

  optparse-applicative-0.15.0.0.tar.gz



Other differences:
--
++ ghc-optparse-applicative.spec ++
--- /var/tmp/diff_new_pack.M87nHH/_old  2019-07-29 17:26:42.006295354 +0200
+++ /var/tmp/diff_new_pack.M87nHH/_new  2019-07-29 17:26:42.006295354 +0200
@@ -19,14 +19,13 @@
 %global pkg_name optparse-applicative
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.14.3.0
+Version:0.15.0.0
 Release:0
 Summary:Utilities and combinators for parsing command line options
 License:BSD-3-Clause
 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
-Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-ansi-wl-pprint-devel
 BuildRequires:  ghc-process-devel
@@ -63,7 +62,6 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ optparse-applicative-0.14.3.0.tar.gz -> 
optparse-applicative-0.15.0.0.tar.gz ++
 6844 lines of diff (skipped)




commit ghc-optparse-applicative for openSUSE:Factory

2019-06-19 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2019-06-19 21:11:23

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


Package is "ghc-optparse-applicative"

Wed Jun 19 21:11:23 2019 rev:11 rq:710634 version:0.14.3.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2018-10-25 08:18:03.196025823 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new.4811/ghc-optparse-applicative.changes
  2019-06-19 21:12:40.054758081 +0200
@@ -1,0 +2,5 @@
+Tue Jun 11 14:29:14 UTC 2019 - Peter Simons 
+
+- Update Cabal file for more accurate build dependencies.
+
+---

New:

  optparse-applicative.cabal



Other differences:
--
++ ghc-optparse-applicative.spec ++
--- /var/tmp/diff_new_pack.KEFKNf/_old  2019-06-19 21:12:41.806759783 +0200
+++ /var/tmp/diff_new_pack.KEFKNf/_new  2019-06-19 21:12:41.810759787 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-optparse-applicative
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -26,6 +26,7 @@
 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
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-ansi-wl-pprint-devel
 BuildRequires:  ghc-process-devel
@@ -62,6 +63,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ optparse-applicative.cabal ++
name:optparse-applicative
version: 0.14.3.0
x-revision: 2
synopsis:Utilities and combinators for parsing command line options
description:
optparse-applicative is a haskell library for parsing options
on the command line, providing a powerful applicative interface
for composing these options.
.
optparse-applicative takes care of reading and validating the
arguments passed to the command line, handling and reporting
errors, generating a usage line, a comprehensive help screen,
and enabling context-sensitive bash completions.
.
See the included README for detailed instructions and examples,
which is also available on github
.
license: BSD3
license-file:LICENSE
author:  Paolo Capriotti, Huw Campbell
maintainer:  huw.campb...@gmail.com
copyright:   (c) 2012-2017 Paolo Capriotti 
category:System, CLI, Options, Parsing
build-type:  Simple
cabal-version:   >= 1.8
extra-source-files:  CHANGELOG.md
 README.md
 tests/alt.err.txt
 tests/cabal.err.txt
 tests/carry.err.txt
 tests/commands.err.txt
 tests/commands_header.err.txt
 tests/commands_header_full.err.txt
 tests/dropback.err.txt
 tests/hello.err.txt
 tests/helponempty.err.txt
 tests/helponemptysub.err.txt
 tests/formatting.err.txt
 tests/nested.err.txt
 tests/subparsers.err.txt

homepage:https://github.com/pcapriotti/optparse-applicative
bug-reports: https://github.com/pcapriotti/optparse-applicative/issues

source-repository head
  type: git
  location: https://github.com/pcapriotti/optparse-applicative.git

library
  -- Monad-without-fail
  build-depends: base <4.13

  ghc-options: -Wall

  -- See https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0
  if impl(ghc >= 8.0)
ghc-options:  -Wno-redundant-constraints -Wcompat 
-Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances

  exposed-modules: Options.Applicative
 , Options.Applicative.Arrows
 , Options.Applicative.BashCompletion
 , Options.Applicative.Builder
 , Options.Applicative.Builder.Completer
 , Options.Applicative.Builder.Internal
 , 

commit ghc-optparse-applicative for openSUSE:Factory

2018-10-25 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2018-10-25 08:17:44

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


Package is "ghc-optparse-applicative"

Thu Oct 25 08:17:44 2018 rev:10 rq:642884 version:0.14.3.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2018-07-21 10:22:19.174999470 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new/ghc-optparse-applicative.changes
   2018-10-25 08:18:03.196025823 +0200
@@ -1,0 +2,12 @@
+Thu Oct  4 09:42:59 UTC 2018 - psim...@suse.com
+
+- Update optparse-applicative to version 0.14.3.0.
+  ## Version 0.14.3.0 (03 Oct 2018)
+
+  - Updated dependency bounds.
+
+  - Fix tab completion with Commands being unreachable.
+
+  - Clean ups and Documentation.
+
+---

Old:

  optparse-applicative-0.14.2.0.tar.gz

New:

  optparse-applicative-0.14.3.0.tar.gz



Other differences:
--
++ ghc-optparse-applicative.spec ++
--- /var/tmp/diff_new_pack.yYAAfc/_old  2018-10-25 08:18:03.860025531 +0200
+++ /var/tmp/diff_new_pack.yYAAfc/_new  2018-10-25 08:18:03.864025529 +0200
@@ -12,14 +12,14 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %global pkg_name optparse-applicative
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.14.2.0
+Version:0.14.3.0
 Release:0
 Summary:Utilities and combinators for parsing command line options
 License:BSD-3-Clause

++ optparse-applicative-0.14.2.0.tar.gz -> 
optparse-applicative-0.14.3.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-applicative-0.14.2.0/CHANGELOG.md 
new/optparse-applicative-0.14.3.0/CHANGELOG.md
--- old/optparse-applicative-0.14.2.0/CHANGELOG.md  2018-02-26 
10:40:23.0 +0100
+++ new/optparse-applicative-0.14.3.0/CHANGELOG.md  2018-10-04 
03:20:14.0 +0200
@@ -1,3 +1,11 @@
+## Version 0.14.3.0 (03 Oct 2018)
+
+- Updated dependency bounds.
+
+- Fix tab completion with Commands being unreachable.
+
+- Clean ups and Documentation.
+
 ## Version 0.14.2.0 (26 Feb 2018)
 
 - Updated dependency bounds.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/optparse-applicative-0.14.2.0/Options/Applicative/Common.hs 
new/optparse-applicative-0.14.3.0/Options/Applicative/Common.hs
--- old/optparse-applicative-0.14.2.0/Options/Applicative/Common.hs 
2018-02-26 10:40:23.0 +0100
+++ new/optparse-applicative-0.14.3.0/Options/Applicative/Common.hs 
2018-10-04 03:20:14.0 +0200
@@ -274,7 +274,7 @@
   | otherwise
   = MultNode []
 go m d r f (MultP p1 p2) = MultNode [go m d r f p1, go m d r' f p2]
-  where r' = r || has_positional p1
+  where r' = r || hasArg p1
 go m d r f (AltP p1 p2) = AltNode [go m d' r f p1, go m d' r f p2]
   where d' = d || has_default p1 || has_default p2
 go _ d r f (BindP p k) =
@@ -283,18 +283,12 @@
 Nothing -> go'
 Just aa -> MultNode [ go', go True d r f (k aa) ]
 
-has_positional :: Parser a -> Bool
-has_positional (NilP _) = False
-has_positional (OptP p) = (is_positional . optMain) p
-has_positional (MultP p1 p2) = has_positional p1 || has_positional p2
-has_positional (AltP p1 p2) = has_positional p1 || has_positional p2
-has_positional (BindP p _) = has_positional p
-
-is_positional :: OptReader a -> Bool
-is_positional (OptReader {})  = False
-is_positional (FlagReader {}) = False
-is_positional (ArgReader {})  = True
-is_positional (CmdReader {})  = True
+hasArg :: Parser a -> Bool
+hasArg (NilP _) = False
+hasArg (OptP p) = (isArg . optMain) p
+hasArg (MultP p1 p2) = hasArg p1 || hasArg p2
+hasArg (AltP p1 p2) = hasArg p1 || hasArg p2
+hasArg (BindP p _) = hasArg p
 
 
 simplify :: OptTree a -> OptTree a
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/optparse-applicative-0.14.2.0/Options/Applicative/Internal.hs 
new/optparse-applicative-0.14.3.0/Options/Applicative/Internal.hs
--- old/optparse-applicative-0.14.2.0/Options/Applicative/Internal.hs   
2018-02-26 10:40:23.0 +0100
+++ new/optparse-applicative-0.14.3.0/Options/Applicative/Internal.hs   
2018-10-04 

commit ghc-optparse-applicative for openSUSE:Factory

2018-07-21 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2018-07-21 10:21:38

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


Package is "ghc-optparse-applicative"

Sat Jul 21 10:21:38 2018 rev:9 rq:623822 version:0.14.2.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2018-05-30 12:26:36.903704837 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new/ghc-optparse-applicative.changes
   2018-07-21 10:22:19.174999470 +0200
@@ -1,0 +2,6 @@
+Wed Jul 18 14:26:34 UTC 2018 - psim...@suse.com
+
+- Cosmetic: replace tabs with blanks, strip trailing white space,
+  and update copyright headers with spec-cleaner.
+
+---
@@ -102 +107,0 @@
-



Other differences:
--



commit ghc-optparse-applicative for openSUSE:Factory

2018-05-30 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2018-05-30 12:11:10

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


Package is "ghc-optparse-applicative"

Wed May 30 12:11:10 2018 rev:8 rq:607849 version:0.14.2.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2017-09-15 22:02:34.642343852 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new/ghc-optparse-applicative.changes
   2018-05-30 12:26:36.903704837 +0200
@@ -1,0 +2,58 @@
+Mon May 14 17:02:11 UTC 2018 - psim...@suse.com
+
+- Update optparse-applicative to version 0.14.2.0.
+  - Export `HasName`, `HasCompleter`, `HasValue`, and
+`HasMetavar` type classes.
+
+  - Upgrade `str` and related builders to be polymorphic over
+`IsString`. This allows `Text` and `Bytestring` to be used
+naturally with `strOption` and `strArgument` and friends.
+
+*Note:* This change may require additional type signatures
+in cases where the reader was necessary for type
+inference.
+
+  - Export public API explicitly from `Options.Applicative`
+instead of re-exporting other modules.
+
+*Note:* Minor changes to exports were made in conjunction
+to this change. `ParserHelp` no longer requires an
+an extra import, and some internally used functions
+from `Options.Applicative.Common` are no longer
+exported from the main module.
+
+  - Add Zsh and Fish completions with rich descriptions for
+options and commands.
+
+Use "--zsh-completion-script" and "fish-completion-script"
+to generate scripts for these shells.
+
+  - Fix bash completions with quoted sections, tilde expansions
+and completions after "--".
+
+  - Add suggestions to error message when a user mistypes a
+command or option.
+
+  - Add `style` builder, for styling option descriptions.
+
+  - Improve error message for options when a required argument
+is not supplied.
+
+  - Fix #242 regarding flags with long options, where a flag given
+a long option could be interpreted incorrectly.
+
+  - Fix `noIntersperse` to be more like its namesakes in other
+libraries. When on, options will be accepted until an argument
+is passed, after which all options will be treated as positional
+arguments.
+
+  - Add `forwardOptions` builder, which will allow unknown options
+and flags to be passed to an argument builder.
+This is useful to mixed parsing environments, or wrappers to
+other commands.
+
+  - Add `Semigroup` instances for `Completer` and `Chunk`.
+
+  - Forwards compatibility with `MonadFail` proposal.
+
+---

Old:

  optparse-applicative-0.13.2.0.tar.gz

New:

  optparse-applicative-0.14.2.0.tar.gz



Other differences:
--
++ ghc-optparse-applicative.spec ++
--- /var/tmp/diff_new_pack.4SDed5/_old  2018-05-30 12:26:38.159662041 +0200
+++ /var/tmp/diff_new_pack.4SDed5/_new  2018-05-30 12:26:38.163661905 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-optparse-applicative
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -19,7 +19,7 @@
 %global pkg_name optparse-applicative
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.13.2.0
+Version:0.14.2.0
 Release:0
 Summary:Utilities and combinators for parsing command line options
 License:BSD-3-Clause
@@ -34,6 +34,7 @@
 BuildRequires:  ghc-transformers-devel
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
+BuildRequires:  ghc-bytestring-devel
 %endif
 
 %description
@@ -78,7 +79,7 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%doc LICENSE
+%license LICENSE
 
 %files devel -f %{name}-devel.files
 %doc CHANGELOG.md README.md

++ optparse-applicative-0.13.2.0.tar.gz -> 
optparse-applicative-0.14.2.0.tar.gz ++
 2547 lines of diff (skipped)




commit ghc-optparse-applicative for openSUSE:Factory

2017-09-15 Thread root
Hello community,

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

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


Package is "ghc-optparse-applicative"

Fri Sep 15 22:02:33 2017 rev:7 rq:525112 version:0.13.2.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2017-04-14 13:38:40.291331688 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new/ghc-optparse-applicative.changes
   2017-09-15 22:02:34.642343852 +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-applicative.spec ++
--- /var/tmp/diff_new_pack.E01TVh/_old  2017-09-15 22:02:35.582211418 +0200
+++ /var/tmp/diff_new_pack.E01TVh/_new  2017-09-15 22:02:35.582211418 +0200
@@ -23,8 +23,8 @@
 Release:0
 Summary:Utilities and combinators for parsing command line options
 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-ansi-wl-pprint-devel
@@ -32,7 +32,6 @@
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-transformers-compat-devel
 BuildRequires:  ghc-transformers-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
 %endif
@@ -50,7 +49,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}
@@ -79,11 +78,9 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 %doc CHANGELOG.md README.md
 
 %changelog




commit ghc-optparse-applicative for openSUSE:Factory

2017-04-14 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2017-04-14 13:38:39

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


Package is "ghc-optparse-applicative"

Fri Apr 14 13:38:39 2017 rev:6 rq:485148 version:0.13.2.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2017-03-14 10:05:42.395517468 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new/ghc-optparse-applicative.changes
   2017-04-14 13:38:40.291331688 +0200
@@ -1,0 +2,5 @@
+Tue Mar 14 09:26:01 UTC 2017 - psim...@suse.com
+
+- Update to version 0.13.2.0 with cabal2obs.
+
+---

Old:

  optparse-applicative-0.13.1.0.tar.gz

New:

  optparse-applicative-0.13.2.0.tar.gz



Other differences:
--
++ ghc-optparse-applicative.spec ++
--- /var/tmp/diff_new_pack.IY1AGb/_old  2017-04-14 13:38:41.199203378 +0200
+++ /var/tmp/diff_new_pack.IY1AGb/_new  2017-04-14 13:38:41.199203378 +0200
@@ -19,7 +19,7 @@
 %global pkg_name optparse-applicative
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.13.1.0
+Version:0.13.2.0
 Release:0
 Summary:Utilities and combinators for parsing command line options
 License:BSD-3-Clause
@@ -38,45 +38,15 @@
 %endif
 
 %description
-Here is a simple example of an applicative option parser:
+Optparse-applicative is a haskell library for parsing options on the command
+line, providing a powerful applicative interface for composing these options.
 
-' data Sample = Sample   hello :: String  , quiet :: Bool
-
+optparse-applicative takes care of reading and validating the arguments passed
+to the command line, handling and reporting errors, generating a usage line, a
+comprehensive help screen, and enabling context-sensitive bash completions.
 
-sample :: Parser Sample sample = Sample  <$> strOption  ( long
-"hello"  <> metavar "TARGET"  <> help "Target for the greeting" )
- <*> switch  ( long "quiet"  <> help "Whether to be quiet" )
-'
-
-The parser is built using applicative style starting from a set of basic
-combinators. In this example, 'hello' is defined as an 'option' with a 'String'
-argument, while 'quiet' is a boolean 'flag' (called 'switch').
-
-A parser can be used like this:
-
-' greet :: Sample -> IO () greet (Sample h False) = putStrLn $ "Hello, " ++ h
-greet _ = return ()
-
-main :: IO () main = execParser opts >>= greet  where  opts = info
-(helper <*> sample)  ( fullDesc  <> progDesc "Print a greeting for
-TARGET"  <> header "hello - a test for optparse-applicative" ) '
-
-The 'greet' function is the entry point of the program, while 'opts' is a
-complete description of the program, used when generating a help text.
-The 'helper' combinator takes any parser, and adds a 'help' option to it (which
-always fails).
-
-The 'hello' option in this example is mandatory (since it doesn't have a
-default value), so running the program without any argument will display a help
-text:
-
->hello - a test for optparse-applicative > >Usage: hello --hello TARGET
-[--quiet] > Print a greeting for TARGET > >Available options: > -h,--help Show
-this help text > --hello TARGET Target for the greeting > --quiet Whether to be
-quiet
-
-containing a short usage summary, and a detailed list of options with
-descriptions.
+See the included README for detailed instructions and examples, which is also
+available on github .
 
 %package devel
 Summary:Haskell %{pkg_name} library development files

++ optparse-applicative-0.13.1.0.tar.gz -> 
optparse-applicative-0.13.2.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-applicative-0.13.1.0/CHANGELOG.md 
new/optparse-applicative-0.13.2.0/CHANGELOG.md
--- old/optparse-applicative-0.13.1.0/CHANGELOG.md  2017-02-10 
07:23:18.0 +0100
+++ new/optparse-applicative-0.13.2.0/CHANGELOG.md  2017-03-09 
02:02:13.0 +0100
@@ -1,3 +1,9 @@
+## Version 0.13.2.0 (9 Mar 2017)
+
+- Updated dependency bounds.
+
+- Doc
+
 ## Version 0.13.1.0 (10 Feb 2017)
 
 - Updated dependency bounds.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/optparse-applicative-0.13.1.0/Options/Applicative/Help.hs 
new/optparse-applicative-0.13.2.0/Options/Applicative/Help.hs
--- old/optparse-applicative-0.13.1.0/Options/Applicative/Help.hs   
2017-02-10 07:23:18.0 +0100
+++ 

commit ghc-optparse-applicative for openSUSE:Factory

2017-03-14 Thread root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2017-03-14 10:05:41

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


Package is "ghc-optparse-applicative"

Tue Mar 14 10:05:41 2017 rev:5 rq:461667 version:0.13.1.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2016-07-20 09:28:41.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new/ghc-optparse-applicative.changes
   2017-03-14 10:05:42.395517468 +0100
@@ -1,0 +2,5 @@
+Sun Feb 12 14:16:49 UTC 2017 - psim...@suse.com
+
+- Update to version 0.13.1.0 with cabal2obs.
+
+---

Old:

  optparse-applicative-0.12.1.0.tar.gz

New:

  optparse-applicative-0.13.1.0.tar.gz



Other differences:
--
++ ghc-optparse-applicative.spec ++
--- /var/tmp/diff_new_pack.CMryHK/_old  2017-03-14 10:05:43.063422893 +0100
+++ /var/tmp/diff_new_pack.CMryHK/_new  2017-03-14 10:05:43.063422893 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-optparse-applicative
 #
-# 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
@@ -17,23 +17,25 @@
 
 
 %global pkg_name optparse-applicative
+%bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.12.1.0
+Version:0.13.1.0
 Release:0
 Summary:Utilities and combinators for parsing command line options
 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-ansi-wl-pprint-devel
 BuildRequires:  ghc-process-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-transformers-compat-devel
 BuildRequires:  ghc-transformers-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-# End cabal-rpm deps
+%if %{with tests}
+BuildRequires:  ghc-QuickCheck-devel
+%endif
 
 %description
 Here is a simple example of an applicative option parser:
@@ -91,14 +93,14 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
+%check
+%cabal_test
 
 %post devel
 %ghc_pkg_recache

++ optparse-applicative-0.12.1.0.tar.gz -> 
optparse-applicative-0.13.1.0.tar.gz ++
 3089 lines of diff (skipped)




commit ghc-optparse-applicative for openSUSE:Factory

2016-07-20 Thread h_root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2016-07-20 09:28:38

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


Package is "ghc-optparse-applicative"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2016-01-28 17:24:58.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new/ghc-optparse-applicative.changes
   2016-07-20 09:28:41.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 17:08:15 UTC 2016 - psim...@suse.com
+
+- Update to version 0.12.1.0 revision 0 with cabal2obs.
+
+---



Other differences:
--
++ ghc-optparse-applicative.spec ++
--- /var/tmp/diff_new_pack.VhioBZ/_old  2016-07-20 09:28:42.0 +0200
+++ /var/tmp/diff_new_pack.VhioBZ/_new  2016-07-20 09:28:42.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-optparse-applicative
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 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
@@ -15,26 +15,24 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-%global pkg_name optparse-applicative
 
-Name:   ghc-optparse-applicative
+%global pkg_name optparse-applicative
+Name:   ghc-%{pkg_name}
 Version:0.12.1.0
 Release:0
 Summary:Utilities and combinators for parsing command line options
-Group:  System/Libraries
-
 License:BSD-3-Clause
+Group:  System/Libraries
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-
 BuildRequires:  ghc-Cabal-devel
-BuildRequires:  ghc-rpm-macros
 # Begin cabal-rpm deps:
 BuildRequires:  ghc-ansi-wl-pprint-devel
 BuildRequires:  ghc-process-devel
+BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-transformers-compat-devel
 BuildRequires:  ghc-transformers-devel
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # End cabal-rpm deps
 
 %description
@@ -78,20 +76,18 @@
 containing a short usage summary, and a detailed list of options with
 descriptions.
 
-
 %package devel
 Summary:Haskell %{pkg_name} library development files
 Group:  Development/Libraries/Other
+Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}
 Requires(postun): ghc-compiler = %{ghc_version}
-Requires:   %{name} = %{version}-%{release}
 
 %description devel
 This package provides the Haskell %{pkg_name} library development
 files.
 
-
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
@@ -107,19 +103,15 @@
 %post devel
 %ghc_pkg_recache
 
-
 %postun devel
 %ghc_pkg_recache
 
-
 %files -f %{name}.files
 %defattr(-,root,root,-)
 %doc LICENSE
 
-
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
-%doc README.md
-
+%doc CHANGELOG.md README.md
 
 %changelog




commit ghc-optparse-applicative for openSUSE:Factory

2016-01-29 Thread h_root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2016-01-28 17:24:03

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


Package is "ghc-optparse-applicative"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2016-01-08 15:22:53.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new/ghc-optparse-applicative.changes
   2016-01-28 17:24:58.0 +0100
@@ -1,0 +2,7 @@
+Wed Jan 20 09:59:00 UTC 2016 - mimi...@gmail.com
+
+- update to 0.12.1.0
+* Improve subparser contexts to improve usage error texts
+* Fixed bugs
+
+---

Old:

  optparse-applicative-0.12.0.0.tar.gz

New:

  optparse-applicative-0.12.1.0.tar.gz



Other differences:
--
++ ghc-optparse-applicative.spec ++
--- /var/tmp/diff_new_pack.shnxZg/_old  2016-01-28 17:24:59.0 +0100
+++ /var/tmp/diff_new_pack.shnxZg/_new  2016-01-28 17:24:59.0 +0100
@@ -18,7 +18,7 @@
 %global pkg_name optparse-applicative
 
 Name:   ghc-optparse-applicative
-Version:0.12.0.0
+Version:0.12.1.0
 Release:0
 Summary:Utilities and combinators for parsing command line options
 Group:  System/Libraries

++ optparse-applicative-0.12.0.0.tar.gz -> 
optparse-applicative-0.12.1.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-applicative-0.12.0.0/CHANGELOG.md 
new/optparse-applicative-0.12.1.0/CHANGELOG.md
--- old/optparse-applicative-0.12.0.0/CHANGELOG.md  2015-09-25 
12:00:41.0 +0200
+++ new/optparse-applicative-0.12.1.0/CHANGELOG.md  2016-01-19 
10:57:20.0 +0100
@@ -1,3 +1,17 @@
+## Version 0.12.1.0 (18 Jan 2016)
+
+- Updated dependency bounds.
+
+- Improve subparser contexts to improve usage error texts
+
+- Doc
+
+- Fixed bugs
+* \# 164 - Invalid options and invalid arguments after parser has succeeded
+   not displaying
+* \# 146 - multi-word filename completion is broken
+
+
 ## Version 0.12.0.0 (17 Sep 2015)
 
 - Add "missing" error condition descriptions when required flags and arguments
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/optparse-applicative-0.12.0.0/Options/Applicative/BashCompletion.hs 
new/optparse-applicative-0.12.1.0/Options/Applicative/BashCompletion.hs
--- old/optparse-applicative-0.12.0.0/Options/Applicative/BashCompletion.hs 
2015-09-25 12:00:41.0 +0200
+++ new/optparse-applicative-0.12.1.0/Options/Applicative/BashCompletion.hs 
2016-01-19 10:57:20.0 +0100
@@ -78,6 +78,7 @@
   [ "_" ++ progn ++ "()"
   , "{"
   , "local cmdline"
+  , "local IFS=$'\n'"
   , "CMDLINE=(--bash-completion-index $COMP_CWORD)"
   , ""
   , "for arg in ${COMP_WORDS[@]}; do"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/optparse-applicative-0.12.0.0/Options/Applicative/Common.hs 
new/optparse-applicative-0.12.1.0/Options/Applicative/Common.hs
--- old/optparse-applicative-0.12.0.0/Options/Applicative/Common.hs 
2015-09-25 12:00:41.0 +0200
+++ new/optparse-applicative-0.12.1.0/Options/Applicative/Common.hs 
2016-01-19 10:57:20.0 +0100
@@ -52,7 +52,7 @@
   OptDescStyle (..)
   ) where
 
-import Control.Applicative (pure, (<*>), (<$>), (<|>), (<$))
+import Control.Applicative (pure, (<*>), (<*), (*>), (<$>), (<|>), (<$))
 import Control.Arrow (left)
 import Control.Monad (guard, mzero, msum, when, liftM)
 import Control.Monad.Trans.Class (lift)
@@ -102,14 +102,13 @@
 return result
   CmdReader _ f ->
 flip fmap (f arg) $ \subp -> StateT $ \args -> do
-  setContext (Just arg) subp
   prefs <- getPrefs
   let runSubparser
 | prefBacktrack prefs = \i a ->
 runParser (getPolicy i) (infoParser i) a
 | otherwise = \i a
 -> (,) <$> runParserInfo i a <*> pure []
-  runSubparser subp args
+  enterContext arg subp *> runSubparser subp args <* exitContext
   _ -> Nothing
 
 optMatches :: MonadP m => Bool -> OptReader a -> OptWord -> Maybe (StateT Args 
m a)
@@ -243,8 +242,9 @@
 runParserFully :: MonadP m => ArgPolicy -> Parser a -> Args -> m a
 runParserFully policy p args = do
   (r, args') <- runParser policy p args
-  guard $ null args'
-  return r
+  case args' of
+[]  -> return r
+a:_ -> parseError a
 
 -- | The default value of a 'Parser'.  This function returns an error if any of
 -- the options don't 

commit ghc-optparse-applicative for openSUSE:Factory

2016-01-08 Thread h_root
Hello community,

here is the log from the commit of package ghc-optparse-applicative for 
openSUSE:Factory checked in at 2016-01-08 15:22:52

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


Package is "ghc-optparse-applicative"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-optparse-applicative/ghc-optparse-applicative.changes
2015-11-26 17:02:48.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-optparse-applicative.new/ghc-optparse-applicative.changes
   2016-01-08 15:22:53.0 +0100
@@ -1,0 +2,12 @@
+Wed Dec 30 12:44:06 UTC 2015 - mimi...@gmail.com
+
+- update to 0.12.0.0
+* Add "missing" error condition descriptions when required flags and arguments
+are not provided.
+* Allow multiple short flags to be concatenated together behind a single
+hyphen, e.g. "-xcf".
+* Updated dependency bounds on process and ansi-wl-pprint.
+* Add Show and Eq instances to some types for easier debugging.
+* Add defaultPrefs, a default preferences value
+
+---

Old:

  optparse-applicative-0.11.0.2.tar.gz

New:

  optparse-applicative-0.12.0.0.tar.gz



Other differences:
--
++ ghc-optparse-applicative.spec ++
--- /var/tmp/diff_new_pack.HtWCeT/_old  2016-01-08 15:22:54.0 +0100
+++ /var/tmp/diff_new_pack.HtWCeT/_new  2016-01-08 15:22:54.0 +0100
@@ -18,7 +18,7 @@
 %global pkg_name optparse-applicative
 
 Name:   ghc-optparse-applicative
-Version:0.11.0.2
+Version:0.12.0.0
 Release:0
 Summary:Utilities and combinators for parsing command line options
 Group:  System/Libraries

++ optparse-applicative-0.11.0.2.tar.gz -> 
optparse-applicative-0.12.0.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/optparse-applicative-0.11.0.2/CHANGELOG.md 
new/optparse-applicative-0.12.0.0/CHANGELOG.md
--- old/optparse-applicative-0.11.0.2/CHANGELOG.md  2015-02-17 
12:22:25.0 +0100
+++ new/optparse-applicative-0.12.0.0/CHANGELOG.md  2015-09-25 
12:00:41.0 +0200
@@ -1,3 +1,19 @@
+## Version 0.12.0.0 (17 Sep 2015)
+
+- Add "missing" error condition descriptions when required flags and arguments
+  are not provided.
+
+- Allow multiple short flags to be concatenated together behind a single
+  hyphen, e.g. "-xcf".
+
+- Updated dependency bounds on `process` and `ansi-wl-pprint`.
+
+- Add `Show` and `Eq` instances to some types for easier debugging.
+
+- Add defaultPrefs, a default preferences value
+
+- Docs.
+
 ## Version 0.11.0.2 (17 Feb 2015)
 
 - Updated dependency bounds.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/optparse-applicative-0.11.0.2/Options/Applicative/Builder.hs 
new/optparse-applicative-0.12.0.0/Options/Applicative/Builder.hs
--- old/optparse-applicative-0.11.0.2/Options/Applicative/Builder.hs
2015-02-17 12:22:25.0 +0100
+++ new/optparse-applicative-0.12.0.0/Options/Applicative/Builder.hs
2015-09-25 12:00:41.0 +0200
@@ -84,6 +84,7 @@
   noBacktrack,
   columns,
   prefs,
+  defaultPrefs,
 
   -- * Types
   Mod,
@@ -135,6 +136,11 @@
 long = fieldMod . name . OptLong
 
 -- | Specify a default value for an option.
+--
+-- /Note/: Because this modifier means the parser will never fail,
+-- do not use it with combinators such as 'some' or 'many', as
+-- these combinators continue until a failure occurs.
+-- Careless use will thus result in a hang.
 value :: HasValue f => a -> Mod f a
 value x = Mod id (DefaultProp (Just x) Nothing) id
 
@@ -186,7 +192,7 @@
 
 -- | Add a bash completion action. Common actions include @file@ and
 -- @directory@. See
--- 
http://www.gnu.org/software/bash/manual/html_node/Programmable-Completion-Builtins.html#Programmable-Completion-Builtins
+-- 

 -- for a complete list.
 action :: HasCompleter f => String -> Mod f a
 action act = completer (bashCompleter act)
@@ -388,3 +394,7 @@
 -- | Trivial option modifier.
 idm :: Monoid m => m
 idm = mempty
+
+-- | Default preferences.
+defaultPrefs :: ParserPrefs
+defaultPrefs = prefs idm
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/optparse-applicative-0.11.0.2/Options/Applicative/Common.hs 
new/optparse-applicative-0.12.0.0/Options/Applicative/Common.hs
--- old/optparse-applicative-0.11.0.2/Options/Applicative/Common.hs 
2015-02-17 12:22:25.0 +0100
+++ new/optparse-applicative-0.12.0.0/Options/Applicative/Common.hs