X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Futils%2FPanic.lhs;h=f79ffce7830473d8915db3bc1ff4c6ebaabda47c;hb=1d47f08d196252b4ee5f4d5b5af2fb4945720762;hp=defbbef630924f8b06fdc0193aa4f06b1dc1e1df;hpb=206b4dec78250efef3cd927d64dc6cbc54a16c3d;p=ghc-hetmet.git diff --git a/compiler/utils/Panic.lhs b/compiler/utils/Panic.lhs index defbbef..f79ffce 100644 --- a/compiler/utils/Panic.lhs +++ b/compiler/utils/Panic.lhs @@ -22,8 +22,6 @@ module Panic installSignalHandlers, interruptTargetThread ) where --- XXX This define is a bit of a hack, and should be done more nicely -#define FAST_STRING_NOT_NEEDED 1 #include "HsVersions.h" import Config @@ -89,6 +87,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