[darcs-devel] Style issues [was: should we import...]

Juliusz Chroboczek Juliusz.Chroboczek at pps.jussieu.fr
Tue May 24 14:45:44 PDT 2005


>> import FileName ( FileName, fn2fp, fp2fn, norm_path )
>> 
>> I like the latter, since it makes it very easy to see which module a given
>> function is from,

I agree.  Another point is that importing whole modules tends to cause
shadowing of symbols, which David's fascist makefiles forbid (-Wall -Werror).

While we're on the subject of style, there is one thing that's
enforced by the current makefiles that I find annoying: the fact that
I cannot name unused parameters in functions.  For example, I cannot
write something like

  foo x [y] = x + y
  foo x list = x

because the build will break with ``list'' being undefined.  Of
course, I can write

  foo x _ = x

but I find that much less perspicuous.

                                        Juliusz




More information about the darcs-devel mailing list