
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
#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): 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