[GHC] #15559: fromJust has no HasCallStack

GHC ghc-devs at haskell.org
Mon Aug 27 21:46:51 UTC 2018


#15559: fromJust has no HasCallStack
-------------------------------------+-------------------------------------
        Reporter:  nomeata           |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Core Libraries    |              Version:  8.4.3
      Resolution:                    |             Keywords:  newcomer
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 goldfire):

 I really like GHC's internal `HasDebugCallStack`, which disappears (that
 is, becomes `()`) when `DEBUG` is not defined via CPP and becomes
 `HasCallStack` when `DEBUG` is defined. As far as I know, there's no
 standard way to mark a build meant for debugging, but perhaps there should
 be. Then, we could do the same for all applications instead of just GHC.

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


More information about the ghc-tickets mailing list