diff --git a/ghc/compiler/utils/Panic.lhs b/ghc/compiler/utils/Panic.lhs
index c3e48656b4a49ece03fb0ddc6984a740ecd0c833..2c226999b1d351beccf89a8eec0755e06599a5a9 100644
--- a/ghc/compiler/utils/Panic.lhs
+++ b/ghc/compiler/utils/Panic.lhs
@@ -9,9 +9,9 @@ It's hard to put these functions anywhere else without causing
 some unnecessary loops in the module dependency graph.
 
 \begin{code}
-module Panic ( panic, panic#, assertPanic, trace ) where
+module Panic  ( panic, panic#, assertPanic, trace ) where
 
-import GlaExts( trace )
+import IOExts ( trace )
 
 #include "HsVersions.h"
 \end{code}