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

Christopher Done chrisdone at googlemail.com
Fri Jun 11 08:35:00 EDT 2010


On 11 June 2010 14:27, Bulat Ziganshin <bulat.ziganshin at gmail.com> wrote:
> i format it this way:
>
> if x then return () else do
> bar
> continueComputation

That's a nice way of formatting! God bless optional formatting! I like
this problem-specific indentation. Another is:

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

Kind of similar to a COND statement from Lisp.


More information about the Haskell-Cafe mailing list