oops, we forgot to export traceShow
[ghc-base.git] / Debug / Trace.hs
index 4091521..16a614e 100644 (file)
@@ -15,7 +15,8 @@
 module Debug.Trace (
        -- * Tracing
        putTraceMsg,      -- :: String -> IO ()
-       trace             -- :: String -> a -> a
+       trace,            -- :: String -> a -> a
+        traceShow
   ) where
 
 import Prelude
@@ -40,7 +41,8 @@ putTraceMsg msg = do
      withCString msg  $ \cmsg ->
       debugBelch cfmt cmsg
 
-foreign import ccall unsafe debugBelch :: CString -> CString -> IO ()
+foreign import ccall unsafe "RtsMessages.h debugBelch"
+   debugBelch :: CString -> CString -> IO ()
 #endif
 
 {-# NOINLINE trace #-}