[Haskell-cafe] Using the ContT monads for early exits of IO ?

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Jun 11 08:40:14 EDT 2010


Hello Christopher,

Friday, June 11, 2010, 4:35:00 PM, you wrote:

> if x        then foo
> else if y then bar
> else if z then mu
> else             zot

case () of
 _ | x -> foo
   | y -> bar
   | otherwise -> zor

it's usually considered as "haskell way" of doing this


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



More information about the Haskell-Cafe mailing list