[darcs-devel] darcs patch: Little style change (avoid a bind+return). (and 1 more)

Nicolas Pouillard nicolas.pouillard at gmail.com
Tue Apr 15 15:01:48 UTC 2008


Excerpts from David Roundy's message of Tue Apr 15 16:44:09 +0200 2008:
> On Mon, Apr 14, 2008 at 11:25:55PM +0000, Nicolas Pouillard wrote:
> > Sun Apr 13 16:23:18 CEST 2008  Nicolas Pouillard <nicolas.pouillard at gmail.com>
> >   * Little style change (avoid a bind+return).
> 
> This change is buggy:  if and when type witnesses are supported in this
> module, using a let binding will cause ghc's brain to explode.

Oops, really sorry.

> > Mon Apr 14 23:45:59 CEST 2008  nicolas.pouillard at gmail.com
> >   * Extend a little color printing, and prettify hunks with mangenta and cyan.
> 
> Could you break this into smaller patches, please?
Yes I will do that.

> This is a rather large
> change, and I don't really have a clear picture of what all the parts are
> doing.  It looks like you've mixed together some refactoring with some
> changes from British to American spelling with some feature additions, and
> I can't really distinguish which is which (well, I *was* able to identify
> the spelling change, but I don't see any reason to include it).

The  spelling  change  was  more  about  normalization since 'color' seems for
often used than 'colour'. However I will not include it in my next patches.

> Also, I don't see any mechanism to control whether this change in
> formatting is used, which should really be there.  But since I haven't
> compiled and run with this change (and can't tell what it does from reading
> either the code or your description thereof), I don't have a clear idea how
> garish it actually is.  I suspect that in any case we'll want to allow
> users (using environment variables) to configure whether the extra
> coloration is used.

Ok, I can add one other environment variable and one more policy option.

However  I don't really see a way to add this control mechanism without either
adding a special case for magenta and cyan colors; or adding extra parameters
to printing functions.

Cheers,

-- 
Nicolas Pouillard aka Ertai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20080415/65fc5fb5/attachment.pgp 


More information about the darcs-devel mailing list