[project @ 2002-10-11 11:05:20 by malcolm]
[ghc-base.git] / Debug / Trace.hs
index 05809a0..19e8ac6 100644 (file)
@@ -50,3 +50,8 @@ trace string expr = unsafePerformIO $ do
 
 foreign import ccall "PostTraceHook" postTraceHook :: Int -> IO ()
 #endif
+
+#ifdef __NHC__
+trace :: String -> a -> a
+trace str expr = unsafePerformIO $ do hPutStr stderr str; return expr
+#endif