Commit Graph

139 Commits

Author SHA1 Message Date
Gabriella Gonzalez
de6098fa00
Version 1.4.6 → 1.4.7 (#90) 2021-11-08 20:39:39 -08:00
Sam Protas
fe0199326a
Derive data instances for exported types (#89) 2021-10-18 19:21:29 -07:00
Gabriella Gonzalez
dbc54db78f
Version 1.4.5 → 1.4.6 (#88) 2021-10-08 16:57:42 -07:00
Oleg Grenrus
e1123b93a7
Use readField in value in default parseField implementation (#87)
This allows defining ParseField instances for types without Read
by only defining `readField` (and `metavar` if needed).

We need transformers-compat to always have Except module
available. The dependency is the same as in optparse-applicative,
so it's "free".
2021-10-05 10:01:24 -07:00
Gabriella Gonzalez
861b894864
Version 1.4.4 → 1.4.5 (#85) 2021-09-01 22:23:04 -07:00
Gabriella Gonzalez
5e9a24d043
Update workflows.yml (#86) 2021-09-01 22:22:52 -07:00
Daniel Winograd-Cort
9270f184e5
Add showDefault (#83) 2021-08-30 11:18:50 -07:00
Daniel Winograd-Cort
a8f66ee199
Add ability to set ShortName at Type (#84) 2021-08-30 09:29:21 -07:00
Simon Jakobi
b571738af4
Allow transformers 0.6 (#82) 2021-08-12 22:38:29 -07:00
Gabriel Gonzalez
4cfaaf5931
Delete .travis.yml 2021-07-16 20:43:46 -07:00
George Thomas
e5248d2d05
Bump time bounds (#80)
https://hackage.haskell.org/package/time-1.12/changelog
2021-07-07 12:03:20 -07:00
Gabriel Gonzalez
42f4521d62
Add GitHub CI (#81) 2021-07-07 12:02:46 -07:00
Simon Jakobi
065cc7666d
Allow bytestring 0.11 (#78)
http://hackage.haskell.org/package/bytestring-0.11.0.0/changelog
2021-02-02 16:43:21 -08:00
Gabriel Gonzalez
04248cf842
Version 1.4.3 → 1.4.4 (#77) 2020-09-30 22:06:12 -07:00
dacto
94ac675ed5
readIntegralBounded: use metavar in error message (#76) 2020-09-30 20:49:52 -07:00
Gabriel Gonzalez
0907d78e1f
Version 1.4.2 → 1.4.3 (#74) 2020-08-14 22:15:53 -07:00
Gabriel Gonzalez
20ecc0a9be
Build against optparse-applicative-0.16.0.0 (#73)
Related to https://github.com/commercialhaskell/stackage/issues/5597
2020-08-14 22:05:25 -07:00
dacto
fd96b4d82b
Export readIntegralBounded (#72) 2020-08-14 14:18:58 -07:00
Gabriel Gonzalez
d2db1883a5
Version 1.4.1 → 1.4.2 (#71) 2020-07-31 10:19:03 -07:00
Gabriel Gonzalez
0702c62112
Export unwrap (#70)
Fixes https://github.com/Gabriel439/Haskell-Optparse-Generic-Library/issues/69
2020-07-06 08:53:22 -07:00
Felix Yan
579274bc03
Depend on semigroups only on GHC < 8.0 (#68)
They are not needed on newer GHC.
2020-06-30 08:29:23 -07:00
Gabriel Gonzalez
a61c1205fa
Version 1.4.0 → 1.4.1 (#67) 2020-06-29 18:12:09 -07:00
Mitsutoshi Aoe
322d651fbf
Fix a broken haddock comment block (#64) 2020-06-16 08:20:55 -07:00
Gabriel Gonzalez
200987a998
Fix cabal version bound (#63) 2020-06-14 11:40:53 -07:00
Gabriel Gonzalez
b07ac85017
Version 1.3.1 → 1.4.0 (#62) 2020-06-14 11:33:30 -07:00
Eitan Chatav
c965405afa
Add support for default values (#61) 2020-06-12 15:47:22 -07:00
Gabriel Gonzalez
7b272cebb9
Version 1.3.0 → 1.3.1 (#59) 2020-01-09 08:42:51 -08:00
Gabriel Gonzalez
2a1b69ead8
Export GenericParseRecord (#58)
Fixes https://github.com/Gabriel439/Haskell-Optparse-Generic-Library/issues/57
2020-01-09 08:22:13 -08:00
Vanessa McHale
4d216a4fea Bump time bounds (#56) 2019-09-05 19:32:59 -05:00
Gabriel Gonzalez
4169fbfa7b
Build against optparse-applicative-0.15 (#55) 2019-07-06 16:12:08 -07:00
Gabriel Gonzalez
c89d7cb553
Build against semigroups-0.19 (#54)
Also drop support for GHC 7.6 since our dependencies no
longer support it
2019-05-11 10:10:05 -07:00
Parnell Springmeyer
f449b38cc9 Export getRecordWith and getRecordPureWith (#51) 2018-10-18 18:56:57 -07:00
Gabriel Gonzalez
ade542d288
Version 1.2.3 → 1.3.0 (#49) 2018-02-23 08:41:25 -08:00
Sophia Rose
900fa2b596 Removes constraints from parseField method default implementation. (#48)
The goal is to make it more convenient to reuse the parseField method by
avoiding superfluous constraints on the default implementation.

With readField, the Read constraint on parseField is not required by the
default implementation any more. I found myself needing to make dummy Read
instances in order to reuse the default implementation.

The Typeable constraint is only used to derive the metavar within parseField.
So I extracted metavar out as another type class method. A nice side effect
of this is that now it's possible to customize the metavar and still reuse the
default parseFields implementation.
2018-02-22 07:19:28 -08:00
Gabriel Gonzalez
7baa281d8d
Version 1.2.2 → 1.2.3 2017-11-04 19:29:21 -07:00
Gabriel Gonzalez
5f41c3fc6a Add shell.nix 2017-11-04 19:08:15 -07:00
Gabriel Gonzalez
261e7208d2 Fix release.nix to build against nixpkgs-17.09 2017-11-04 19:07:50 -07:00
Gabriel Gonzalez
46141daeab Increase lower bound on optparse-applicative
The library now depends on the `IsString`-generalized version of
`Options.Applicative.str`, which was added in version `0.14.0.0`
2017-11-04 19:07:00 -07:00
Chris Martin
7d86b638a4 bounds checking for Int, more integral instances (#44) 2017-11-04 14:30:17 -07:00
Gabriel Gonzalez
a1e4a3abcc Version 1.2.1 => 1.2.2 2017-07-14 12:21:11 -07:00
Gabriel Gonzalez
334f706818 Use the Only package 2017-06-23 20:32:53 -07:00
Bartosz Nitka
47615e2b5c Relax time bound in preparation for GHC 8.2 (#40)
GHC 8.2 is very likely to ship with time-1.8.0.1.

See also:
https://ghc.haskell.org/trac/ghc/wiki/Commentary/Libraries/VersionHistory

FWIW the library builds with GHC 8.2 after that.
2017-06-15 06:14:56 -07:00
Gabriel Gonzalez
d6d9a51fb2 Version 1.2.0 => 1.2.1 2017-06-11 14:25:40 -07:00
Parnell Springmeyer
f8449f420b Relaxing the upper bound of optparse-applicative to allow for the 0.14.* release (#39) 2017-06-11 09:36:07 -07:00
Parnell Springmeyer
99eff58d69 Allow modification of ParserInfo and ParserPrefs for top-level parser entrypoints (#38)
This refactors `getRecord` to use a lower-level `getRecordWith` supporting modification of the `ParserInfo` and `ParserPrefs` records
2017-05-27 14:21:05 -07:00
Gabriel Gonzalez
5632ef21ee Version 1.1.5 => 1.2.0 2017-05-14 07:04:46 -07:00
Gabriel Gonzalez
07b6dac0a5 Add support for generating short flags for options. Fixes #33 (#36)
This adds a new `shortNameModifier` to the `Modifiers` record which is
used to optionally generate a short flag for labeled fields

This change also updates the documentation around how to use `Modifiers`
2017-05-02 08:48:57 -07:00
Ryan Mulligan
42c107bdae add getWithHelp and unwrapWithHelp (#35)
closes #34
2017-04-25 09:05:45 -07:00
Gabriel Gonzalez
41cd7285e7 Version 1.1.5 2017-04-12 09:32:29 -07:00
Xia Li-yao
4b6a857668 Ability to automatically apply unHelpful to parsed fields (#32) 2017-04-10 12:40:26 -07:00