X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Debug%2FTrace.hs;h=8b85f62f208d39a9d3b3d43f9a1366a265e679c2;hb=a0072d5e485d323656906f6d8ac64606972bf2ee;hp=e5905b1dcebd5339ff6eca513e84f866d34b041a;hpb=df757286ee0285330c925bf22c4fb8042a097f0a;p=ghc-base.git diff --git a/Debug/Trace.hs b/Debug/Trace.hs index e5905b1..8b85f62 100644 --- a/Debug/Trace.hs +++ b/Debug/Trace.hs @@ -12,8 +12,8 @@ -- ----------------------------------------------------------------------------- -#ifndef __HUGS__ -#include "config.h" +#ifdef __GLASGOW_HASKELL__ +#include "ghcconfig.h" #endif module Debug.Trace ( @@ -34,15 +34,13 @@ module Debug.Trace ( ) where import Prelude +import Data.IORef import System.IO.Unsafe import System.IO -#ifdef __GLASGOW_HASKELL__ -import GHC.IOBase -import GHC.Handle -#endif - +#ifdef mingw32_TARGET_OS import Foreign.C.String +#endif {-# NOINLINE tracers #-} tracers :: IORef [(String, String -> IO ())]