[GHC] #13372: Attach CallStack to IOError, add CallStack constraints to relevant functions in base
GHC
ghc-devs at haskell.org
Sat Mar 4 10:34:15 UTC 2017
#13372: Attach CallStack to IOError, add CallStack constraints to relevant
functions in base
-------------------------------------+-------------------------------------
Reporter: ezyang | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 8.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by mnislaih):
Both choices are viable, I think Java does (1), whereas C# goes with (2)
but keeps a list of call stacks to avoid losing the original stack on
rethrow.
If we later wanted to add a call stack to SomeException, would (2) become
the more natural choice ?
If so, would it be worth adapting the proposal to add the call stack to
SomeException now, but only surface it in IOError ?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13372#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list