Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
e6ce335e
Commit
e6ce335e
authored
Dec 03, 2012
by
Erik de Castro Lopo
Browse files
Fix pprPanic so that it doesn't throw away the SDoc part of the error.
parent
3a40456f
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/utils/Outputable.lhs
View file @
e6ce335e
...
...
@@ -898,7 +898,8 @@ plural _ = char 's'
pprPanic :: String -> SDoc -> a
-- ^ Throw an exception saying "bug in GHC"
pprPanic = panicDoc
pprPanic s doc
= throwGhcException (Panic (s ++ "\n" ++ showSDoc unsafeGlobalDynFlags doc))
pprSorry :: String -> SDoc -> a
-- ^ Throw an exception saying "this isn't finished yet"
...
...
ian@well-typed.com
@igloo
mentioned in commit
50905e1a
·
Dec 04, 2012
mentioned in commit
50905e1a
mentioned in commit 50905e1abeee21a5006f9c4e5a54654acff0542e
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment