mirror of
https://github.com/Gabriella439/optparse-generic.git
synced 2024-11-22 21:48:54 +03:00
900fa2b596
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.
9 lines
124 B
YAML
9 lines
124 B
YAML
resolver: lts-2.22
|
|
extra-deps:
|
|
- Only-0.1
|
|
- optparse-applicative-0.14.0.0
|
|
- fail-4.9.0.0
|
|
- time-1.5.0.1
|
|
nix:
|
|
enable: true
|