From: Simon Marlow Date: Wed, 23 Jan 2008 16:31:45 +0000 (+0000) Subject: Show CmdLineError exceptions as ": ..." X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=db0591be8928dbe75e8b804f2ae95728a6074b7e Show CmdLineError exceptions as ": ..." instead of something like "ghc-6.8.2: ...", which causes problems in the test suite. In any case, "" seems a more appropriate context for these errors, the only question is whether we're using CmdLineError incorrectly anywhere. --- diff --git a/compiler/utils/Panic.lhs b/compiler/utils/Panic.lhs index defbbef..ffd3b67 100644 --- a/compiler/utils/Panic.lhs +++ b/compiler/utils/Panic.lhs @@ -89,6 +89,7 @@ showException other_exn = show other_exn instance Show GhcException where showsPrec _ e@(ProgramError _) = showGhcException e + showsPrec _ e@(CmdLineError _) = showString ": " . showGhcException e showsPrec _ e = showString progName . showString ": " . showGhcException e showGhcException :: GhcException -> String -> String