[GHC] #11035: Add implicit call-stacks to partial functions in base
GHC
ghc-devs at haskell.org
Sun Nov 1 23:05:36 UTC 2015
#11035: Add implicit call-stacks to partial functions in base
-------------------------------------+-------------------------------------
Reporter: gridaphobe | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.2
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 nomeata):
> I'm generally inclined to agree that there's no harm in spilling
implementation details in the stack trace, I can't think of a single
language that lets you do what Joachim is suggesting.
Since when has that become an argument _against_ a change? Especially if
no one else is doing it, then we should be doing it ;-)
> That being said, it sounds like it could be a very lightweight extension
of the existing machinery, so it might be interesting to experiment with.
But it probably should be a separate ticket :)
Agreed; #11049.
If that is implemented you might use that machinery to fix this bug
without having to maintain two variants of error, as you can suppress the
CallStack at the point where error (or `foldl1`) is called.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11035#comment:17>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list