[Haskell-cafe] Shortening if-then-else

Tomasz Zielonka tomasz.zielonka at gmail.com
Wed Nov 23 01:30:37 EST 2005


On Tue, Nov 22, 2005 at 09:07:29PM +0000, Joel Reymont wrote:
> Why wouldn't Bulat's version work?

Because Int /= ()

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

Best regards
Tomasz


More information about the Haskell-Cafe mailing list