[GHC] #13360: Add a flag to enable inferring HasCallStack constraints

GHC ghc-devs at haskell.org
Sat Nov 11 22:20:29 UTC 2017


#13360: Add a flag to enable inferring HasCallStack constraints
-------------------------------------+-------------------------------------
        Reporter:  gridaphobe        |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:  8.4.1
       Component:  Compiler          |              Version:  8.0.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 bgamari):

 > So, how do we take it forward from here? Is it possible to have
 HasCallStack automatically for functions in IO and/or above a certain cost
 threshold?

 I think we'll need to define the criterion here a bit more precisely. In
 particular, it's not clear that doing this in a completely type-driven way
 makes sense. For instance, what about a function in `MaybeT IO`?

 Using a size-threshold sounds plausible but feels a bit ad-hoc.

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


More information about the ghc-tickets mailing list