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

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9

Attachment: signature.asc
Description: Digital signature

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to