Eric Kow <[EMAIL PROTECTED]> writes:
> Applied, thanks!
>
> resolve issue1238: refactor "darcs setpref" help.
> -------------------------------------------------
>> +setpref_description :: String
>> +setpref_description = "Set the value of a preference (" ++ ps ++ ")."
>> + where ps = iter valid_prefs
>> + iter [x] = x
>> + iter [x,y] = x ++ " or " ++ y
>> + iter (x:xs) = x ++ ", " ++ (iter xs)
>> + iter [] = "" -- impossible, but keeps -Wall happy
>
> It might be worth putting this in our English module
I considered that, but didn't bother in this initial patch (mainly
because I couldn't think of a good name).
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users