untabify
[ghc-base.git] / Debug / Trace.hs
index 4091521..c30c811 100644 (file)
 -----------------------------------------------------------------------------
 
 module Debug.Trace (
-       -- * Tracing
-       putTraceMsg,      -- :: String -> IO ()
-       trace             -- :: String -> a -> a
+        -- * Tracing
+        putTraceMsg,      -- :: String -> IO ()
+        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 #-}