[Haskell-cafe] Using the ContT monads for early exits of IO ?
Günther Schmidt
gue.schmidt at web.de
Thu Jun 10 09:30:27 EDT 2010
Hi everyone,
I'm about to write a rather lengthy piece of IO code. Depending on the
results of some of the IO actions I'd like the computation to stop right
there and then.
Now I know in general how to write this but I'm wondering if this is one
of those occasions where I should make use of the Cont monad to make an
early exit.
Günther
More information about the Haskell-Cafe
mailing list