Remove obselete code for update-in-place (which we no longer do)
[ghc-hetmet.git] / compiler / utils / Panic.lhs
index ffc3c37..95878c4 100644 (file)
@@ -9,6 +9,13 @@ It's hard to put these functions anywhere else without causing
 some unnecessary loops in the module dependency graph.
 
 \begin{code}
+{-# OPTIONS -w #-}
+-- The above warning supression flag is a temporary kludge.
+-- While working on this module you are encouraged to remove it and fix
+-- any warnings in the module. See
+--     http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings
+-- for details
+
 module Panic  
    ( 
      GhcException(..), showGhcException, ghcError, progName, 
@@ -128,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