Skip to content

Support HasCallStack for calls to panic

As far as I can tell panic only reports cost center callstacks currently.

It would be useful to include information provided by HasCallStack if available as well.

When using the GHC API (or hacking on GHC itself) this would be a convenient way to get more information about what lead to an error that triggers panic in a different part of the compiler.

Trac metadata
Trac field Value
Version 8.2.1
Type FeatureRequest
TypeOfFailure OtherFailure
Priority low
Resolution Unresolved
Component GHC API
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information