Skip to content

Unexcepted behaviour of Control.Exception.catch

Hi,

I'm running GHC Interactive, version 6.6, for Haskell 98 on a Suse Linux 9.3 Distribution.

the expression

Control.Exception.catch (Control.Exception.throw (Control.Exception.AssertionFailed "error"))(\e -> return "caught")

evaluates to the expected value "caught". But the expression

Control.Exception.catch (return (Control.Exception.throw (Control.Exception.AssertionFailed "error")))(\e -> return "caught")

stops with the message: "*** Exception: error which seems to be an error (at least from my point of view).

best regards

Tobias

Trac metadata
Trac field Value
Version 6.6
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information