[darcs-users] darcs patch: Partially rewrite "darcs annotate" help. (and 3 more)

Trent W. Buck trentbuck at gmail.com
Sat Oct 3 05:30:58 UTC 2009


Eric Kow <kowey at darcs.net> writes:

>> +                    unlines ["# " ++ line | line <- fileHelpAuthor] ++ add
>
> Does this actually work?  I get the impression from get_easy_author that this
> would not have the desired effect, that the author would be #foo

I thought I tested it!  Maybe I accidentally tested with /usr/bin/darcs
instead of dist/build/darcs/darcs (i.e. not actually testing it).

> Perhaps something like this would be clearer
>
>   hint = unlines (map ("# " ++) fileHelpAuthor)
>
> writeFile $ hint ++ "\n" ++ add

I don't like binding names that are only used once :-)



More information about the darcs-users mailing list