#1152: Unexcepted behaviour of Control.Exception.catch
-------------------------------+--------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.6
Severity: normal | Resolution: invalid
Keywords: | Difficulty: Unknown
Testcase: | Architecture: x86
Os: Linux |
-------------------------------+--------------------------------------------
Changes (by igloo):
* resolution: => invalid
* status: new => closed
Comment:
This is actually expected behaviour. In the second expression the value
`throw ...` isn't demanded by catch as it is happy with `return <thunk>`.
The thunk is then evaluated outside of the catch and the exception is
raised.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1152>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs