[GHC] #1152: Unexcepted behaviour of Control.Exception.catch
GHC
trac at galois.com
Sat Feb 17 17:55:17 EST 2007
#1152: Unexcepted behaviour of Control.Exception.catch
-------------------------------+--------------------------------------------
Reporter: tobi at die-loews.de | 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
More information about the Glasgow-haskell-bugs
mailing list