[Haskell-cafe] extending and reusing cmdargs option specs ?

Simon Michael simon at joyful.com
Mon Sep 12 17:13:52 CEST 2011

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
> 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...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110912/6e87cbf6/attachment.htm>

More information about the Haskell-Cafe mailing list