[Haskell-cafe] Uncatchable error

Daniel Peebles pumpkingod at gmail.com
Fri Mar 11 22:14:41 CET 2011

It's a hack by design, to work around libraries that do the wrong thing.

On Fri, Mar 11, 2011 at 4:07 PM, Henning Thielemann <
lemming at henning-thielemann.de> wrote:

> On Fri, 11 Mar 2011, Daniel Peebles wrote:
>  Check out the spoon package on hackage. It's designed for these kinds of
>> situations, and
>> will wrap up common user-generated "pure" exceptions into a Maybe (and
>> will return
>> Nothing in the cases you describe)
> This is a hack, since 'undefined' cannot be detected in general. The clean
> solution would be to find out where invalid file descriptors are detected in
> the IO code, and throw a real IOException instead of an 'error'.
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110311/dd584abf/attachment.htm>

More information about the Haskell-Cafe mailing list