#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 claus):
Replying to [comment:3 simonmar]:
> Replying to [comment:2 NeilMitchell]:
> > I'd suggest that no output is appropriate.
> 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.
Would it work to wrap the whole thing (including any `finally`s) in a
handler that discards surviving `ExitSuccess`es by default, with a flag to
disable the default wrapping?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2707#comment:4>
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