[Haskell-cafe] extending and reusing cmdargs option specs ?
simon at joyful.com
Mon Sep 12 17:13:52 CEST 2011
On Sep 12, 2011, at 4:24 AM, Sebastian Fischer wrote:
> 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
> inherit from previous items what they do not define themselves.
Is that because of &= auto ?
I override a default record for each mode as you see at http://joyful.com/darcsden/simon/hledger/hledger/Hledger/Cli/Options.hs#L-49 . At first guess I would say the end result is the same, but maybe not. Thanks for the example.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe