[GHC] #14467: Support HasCallStack for calls to panic

#14467: Support HasCallStack for calls to panic -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: feature | Status: new request | Priority: low | Milestone: Component: GHC API | Version: 8.2.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- 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. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14467 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14467: Support HasCallStack for calls to panic -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: feature request | Status: new Priority: low | Milestone: Component: GHC API | Version: 8.2.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): For what it's worth, `pprPanic` already takes a callstack. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14467#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC