[Haskell-cafe] return?

Bulat Ziganshin bulat.ziganshin at gmail.com
Tue Feb 20 05:36:06 EST 2007

Hello Vikrant,

Tuesday, February 20, 2007, 10:59:16 AM, you wrote:

> I encounter situation in which my function has to end recursion by
> doing "nothing" and otherwise keep calling same function with some
> different parameters. I did not find anything equivalent to "pass"
> or "return" statement in Haskell.

return ()

when (cond) $ do

unless (cond) $ do

if cond then statement else do

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list