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

Henning Thielemann lemming at henning-thielemann.de
Tue Apr 14 16:14:28 EDT 2009

On Tue, 14 Apr 2009, Miguel Mitrofanov wrote:

> What about ErrorT monad transformer? Well, if it's not what you really want, 
> you can define your own one without ugly "Error" class, so it'd be something 
> like
> execute :: FilePath -> [String] -> MyCoolErrorT ExecuteError IO ExitCode

My MyCoolErrorT is named Control.Monad.Exception.Synchronous.ExceptionalT 
and can be found in the explicit-exception package. In contrast to ErrorT 
it puts no restrictions on the exception type.

More information about the Haskell-Cafe mailing list