There are quite a few exception handling mechanisms provided by Haskell,
as can be seen from this post:
http://www.randomhacks.net/articles/2007/03/10/haskell-8-ways-to-report-errors
I would like to know what is the preferred Haskell mechanism for handling
exceptions in
the IO monad? I am not concerned with mechanisms such as Maybe / Either, but
would like
to know about exception mechanisms inside the IO monad.
The 2 I know of are:
o) throwDyn
o) ioError and catch
I do need the exceptions to be extendable. So which is the preferred way
to handle exceptions in Haskell for new libs?
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe