[GHC] #11510: Missing Show instance for GHC.Stack.SrcLoc

GHC ghc-devs at haskell.org
Tue Feb 2 19:46:25 UTC 2016


#11510: Missing Show instance for GHC.Stack.SrcLoc
-------------------------------------+-------------------------------------
        Reporter:  SimonHengel       |                Owner:
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.0.1
       Component:  Core Libraries    |              Version:  8.0.1-rc1
      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 gridaphobe):

 I don't have a problem with adding the Show instance for SrcLoc back, I
 didn't think it would be very useful.

 There was also a Show instance for CallStack in 7.10.2, is there a reason
 to want that? I think not, because the user shouldn't care about the
 representation. If you want a machine-readable formatting of a CallStack
 you can use `getCallStack stk` to get a list of the call-sites, which is
 then Showable (assuming a Show SrcLoc instance).

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


More information about the ghc-tickets mailing list