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

GHC ghc-devs at haskell.org
Fri Nov 10 06:27:55 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 saurabhnanda):

 I'm picking this up now. Any pointers on how to build a sensible benchmark
 for HasCallstack? Here's what I'm planning to do:

 * Benchmark small pieces of pure code which calls `error` or `throwIO` or
 `throwM` where every function where every function in the callstack
 has/omits the `HasCallstack` constraint.
 * Benchmark some real-world libraries that involve parsing and IO
 with/without the `HasCallstack` constraint, eg. opaleye, postgresql-
 simple, yaml, and aeson.

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


More information about the ghc-tickets mailing list