[Haskell] signature of when, unless

Frederik Eaton frederik at ugcs.caltech.edu
Mon Jan 3 21:12:59 EST 2005


Wouldn't it be more useful if the type was

when :: Monad m => Bool -> m a -> m ()

not

when :: Monad m => Bool -> m () -> m ()

...?

Frederik


More information about the Haskell mailing list