Re: [commit: ghc] master: Fix pprPanic so that it doesn't throw away the SDoc part of the error. (e6ce335)
Ian Lynagh <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.cvs.ghc |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Dec 05, 2012 at 08:12:59AM +1100, Erik de Castro Lopo wrote: > > when the exception is throw it ends up in showGhcException which drops > the SDoc part of the message on the floor: > > PprPanic s _ -> > showGhcException (Panic (s ++ "\n<<details unavailable>>")) It's meant to end up in prettyPrintGhcErrors (called by main' in ghc/Main.hs). Perhaps we need a second call to prettyPrintGhcErrors earlier, using dflags0? Thanks Ian -- Ian Lynagh, Haskell Consultant Well-Typed LLP, http://www.well-typed.com/