X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Futils%2FPanic.lhs;h=95878c4f52e598b6146553f78ec372c2c222988d;hp=baf1bf3e28f2f0b5d7f12f49132818be6fbd08b2;hb=67cb409159fa9136dff942b8baaec25909416022;hpb=fe784e7dfffa8b876ed738306a82bf4bdcfd8be7 diff --git a/compiler/utils/Panic.lhs b/compiler/utils/Panic.lhs index baf1bf3..95878c4 100644 --- a/compiler/utils/Panic.lhs +++ b/compiler/utils/Panic.lhs @@ -135,7 +135,7 @@ Panics and asserts. \begin{code} panic, pgmError :: String -> a -panic x = Exception.throwDyn (Panic x) +panic x = trace ("Panic (" ++ x ++ ")") (Exception.throwDyn (Panic x)) pgmError x = Exception.throwDyn (ProgramError x) -- #-versions because panic can't return an unboxed int, and that's