[Haskell-cafe] Where is the documentation on exception types kept?
Albert Y. C. Lai
trebla at vex.net
Wed Nov 7 22:08:33 CET 2012
On 12-11-07 03:36 PM, timothyhobbs at seznam.cz wrote:
> I am trying to catch an "thread blocked on MVar indefinitely
> exception." Of course I can use ::SomeException as explained in
> but there is no explanation as to how to find the more case specific
In general, because Exception instances are Typeable instances, you can
get a name, and then you can use that for searches.
main = do
aida <- try (readFile "no")
case aida of
Left (SomeException e) -> print (typeOf e)
More information about the Haskell-Cafe