[darcs-devel] [patch1218] move Iso and IsoFunctor from Darcs.UI.Options.Core to ...

Ben Franksen bugs at darcs.net
Mon Dec 29 14:37:08 UTC 2014


Ben Franksen <benjamin.franksen at helmholtz-berlin.de> added the comment:

The Iso stuff is used in many places in the Options subsystem to lift
data type conversions to the option level. There are other ways to do
this but I found that this light-weight approach reduces the boilerplate
to the minimum. For a simple example, look at the definition of
Darcs.UI.Options.All.dryRun where the Iso is between Bool and
Darcs.Repository.Flags.DryRun.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch1218>
__________________________________


More information about the darcs-devel mailing list