Hi Neil,
I just spent a day converting hledger from getopt to cmdargs. cmdargs
feels more high level and featureful and nicer. And yet... I haven't
reduced the line count that much - nothing like your HLint 3:1 ratio.
And, I may have made things worse for myself in the reuse/avoiding
boil
On 8/8/11 1:59 PM, Simon Michael wrote:
And, I may have made things worse for myself in the reuse/avoiding
boilerplate department: I'm not sure how to reuse a cmdargs options data
structure, extending it with a few more options.
This is a big problem I'm dealing with too lately. In particular,
Hi,
You're asking for:
http://code.google.com/p/ndmitchell/issues/detail?id=291 - it's
something I'm already aware of, and what to do at some point.
Unfortunately, it probably won't be anytime in the next few months,
but it will happen eventually.
Thanks, Neil
On Tue, Aug 9, 2011 at 3:08 AM, wre
On 9/11/11 6:11 AM, Neil Mitchell wrote:
Hi,
You're asking for:
http://code.google.com/p/ndmitchell/issues/detail?id=291 - it's
something I'm already aware of, and what to do at some point.
Unfortunately, it probably won't be anytime in the next few months,
but it will happen eventually.
Yep,
Hi Simon,
while it is not possible to reuse the definitions of common fields
themselves, their *descriptions* need to be given only once. Not sure
if you are already sharing descriptions or if it helps you saving a
few more lines. See
https://github.com/sebfisch/haskell-barchart/blob/v0.1.1.1
Hi Sebastian,
On Sep 12, 2011, at 4:24 AM, Sebastian Fischer wrote:
>https://github.com/sebfisch/haskell-barchart/blob/v0.1.1.1/src/barchart.hs
>
> for an example of different modes that share most but not all of their
> options. IIRC, it works because in the list of exec modes later items
>
Hi Simon,
On Tue, Sep 13, 2011 at 12:13 AM, Simon Michael wrote:
> Is that because of &= auto ?
I'm not sure. The feature was added in version 0.2 and is described in
issue 333:
http://code.google.com/p/ndmitchell/issues/detail?id=333
The description does not mention &= auto.
Sebastian
_