[darcs-devel] darcs patch: added postget to prefs (and 2 more)

David Roundy droundy at abridgegame.org
Mon Aug 1 03:55:19 PDT 2005


Hi Jason,

For overall comments, see my other email.  Here I just have a code
simplification to point out.

On Mon, Aug 01, 2005 at 12:46:22AM -0700, Jason Dagit wrote:
> + maybeAskUser 
> +     | RunPostGet `elem` opts = \_ -> return "yes"
> +     | AskPostGet `elem` opts = askUser 
> +     | otherwise = impossible

If you change this to 

 maybeAskUser 
     | RunPostGet `elem` opts = \_ -> return "yes"
     | otherwise = askUser

you can eliminate the fixFlagsToPostget function, and have cleaner code.
-- 
David Roundy
http://www.darcs.net




More information about the darcs-devel mailing list