[Haskell-cafe] error handling (esp. IO/exceptions)

brian at lorf.org brian at lorf.org
Tue Apr 14 16:00:34 EDT 2009


On Tuesday, 14.04.09 at 23:36, Miguel Mitrofanov wrote:
> What about ErrorT monad transformer?

I don't see how it helps in my situation. ErrorT doesn't catch
exceptions, for example. Suppose I did make something like ErrorT that
catches exceptions and turn them into Lefts. Where would (>>=) get my
specific error constructor?

Maybe I need to make helper functions to use in runErrorT blocks that
turn exceptions, Bools, Maybes, etc., into Eithers? Confused.


More information about the Haskell-Cafe mailing list