#2707: GHCi reports "exitWith ExitSuccess" as an exception
------------------------------+---------------------------------------------
 Reporter:  guest             |          Owner:                  
     Type:  bug               |         Status:  new             
 Priority:  normal            |      Milestone:                  
Component:  Compiler          |        Version:  6.8.3           
 Severity:  normal            |     Resolution:                  
 Keywords:                    |     Difficulty:  Unknown         
 Testcase:                    |   Architecture:  Unknown/Multiple
       Os:  Unknown/Multiple  |  
------------------------------+---------------------------------------------
Comment (by simonmar):

 Replying to [comment:2 NeilMitchell]:
 > I'd suggest that no output is appropriate. The fact that exit success is
 implemented as an exception is an internal detail, as exceptions are
 typically for exceptional conditions. It also mirrors the standalone
 behaviour, which is a good thing.

 It's not just an implementation detail - the fact that `ExitSuccess` is an
 exception means that you can use things like `Control.Exception.finally`
 to run code on program exit, regardless of whether the program exits
 successfully or not.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2707#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to