#1152: Unexcepted behaviour of Control.Exception.catch
-------------------------------+--------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |          Owner:         
     Type:  bug                |         Status:  new    
 Priority:  normal             |      Milestone:         
Component:  Compiler           |        Version:  6.6    
 Severity:  normal             |     Resolution:         
 Keywords:                     |     Difficulty:  Unknown
 Testcase:                     |   Architecture:  x86    
       Os:  Linux              |  
-------------------------------+--------------------------------------------
Comment (by guest):

 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

-- 
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

Reply via email to