[Haskell-cafe] Shortening if-then-else

Bulat Ziganshin bulatz at HotPOP.com
Tue Nov 22 14:15:15 EST 2005


Hello Matthias,

Tuesday, November 22, 2005, 9:17:57 PM, you wrote:

MN> return $ guard (cmdType cmd /= CmdSitError Serv) >> return seat_num

return $ when (cmdType cmd /= CmdSitError Serv) (return seat_num)

must also work :)


-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com





More information about the Haskell-Cafe mailing list