Commit 50905e1a authored by's avatar
Browse files

Revert "Fix pprPanic so that it doesn't throw away the SDoc part of the error."

This reverts commit e6ce335e.

pprPanic doesn't throw the Doc away: It gets passed in the PprPanic
parent 70c4e4bb
......@@ -898,8 +898,7 @@ plural _ = char 's'
pprPanic :: String -> SDoc -> a
-- ^ Throw an exception saying "bug in GHC"
pprPanic s doc
= throwGhcException (Panic (s ++ "\n" ++ showSDoc unsafeGlobalDynFlags doc))
pprPanic = panicDoc
pprSorry :: String -> SDoc -> a
-- ^ Throw an exception saying "this isn't finished yet"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment