Skip to content
Snippets Groups Projects
Commit f849c5fc authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

compiler: Don't show ExceptionContext of GhcExceptions

Most GhcExceptions are user-facing errors and therefore the
ExceptionContext has little value. Ideally we would enable
it in the DEBUG compiler but I am leaving this for future work.
parent 18c5409f
No related branches found
No related tags found
No related merge requests found
......@@ -127,6 +127,10 @@ instance Exception GhcException where
PlainProgramError str -> ProgramError str
| otherwise = Nothing
-- Explicitly omit ExceptionContext since we generally don't
-- want backtraces and other context in GHC's user errors.
displayException exc = showGhcExceptionUnsafe exc ""
instance Show GhcException where
showsPrec _ e = showGhcExceptionUnsafe e
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment