#2508: exception handling: exitWith ExitSuccess results in abnormal termination
with Control.OldException
----------------------------+-----------------------------------------------
Reporter: int-e | Owner: igloo
Type: bug | Status: new
Priority: normal | Milestone: 6.10.1
Component: libraries/base | Version: 6.9
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: x86
Os: Linux |
----------------------------+-----------------------------------------------
Comment (by int-e):
Replying to [comment:1 igloo]:
> Ah, I think we actually want `TopHandler` to also try catching the old
`Exception` type. I'll look into this, although I might leave it until
after the base splitting has happened.
I think we've already lost the game if the old `Exception` type ever gets
thrown - then any library using the new exception mechanism will not
recognize the exceptions. As far as I understand the new mechanism,
implementing the full `Exception` class instance should take care of that
- that's what my proposed patch does.
(Hmm, by that reasoning, the {{{Caster (\e -> e)}}} can be safely removed
from the list of attempted casts in said patch.)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2508#comment:2>
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