[GHC] #13372: Attach CallStack to IOError, add CallStack constraints to relevant functions in base

GHC ghc-devs at haskell.org
Sun Mar 5 01:07:31 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 ezyang):

 I've mentioned on the other ticket that I don't think adding call stacks
 to the SomeException type is wise (since you lose the callstacks when you
 unwrap SomeException and work with `Exception e => e`). So, if the best
 you can do is add call stack manipulating functions to the Exception type
 class, (2) can be made to work, since the Exception generic functions can
 use the methods in the type class to attach a call stack.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13372#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list