On Thu, Jan 15, 2009 at 21:30:37 +1100, Trent W. Buck wrote:
> Hmm, I made them have a common exitWith at the bottom of the "outer"
> when's body.

Hmm!  Indeed you did... so the code actually seems to make sense to me.
I must be missing something (or maybe this is one of those cases where
you accidentaly revealed some other bug by changing something innocent?)

> Maybe I've misunderstood how WHEN works in Haskell?

I think when is just

 when :: Bool -> m () -> m ()
 when b a =
   if b then a else return ()

-- 
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