X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mate.git;a=blobdiff_plain;f=Mate%2FDebug.hs;fp=Mate%2FDebug.hs;h=ba7ce315722e82be962d7d1543ff14780f328509;hp=1fb65e97023f32dab77b6c23f0af28148a9b2602;hb=b4cb8e6b7b66e82580b0637ec5a9d9b7531121b4;hpb=2ac2a68eb5b709caa636d1a9a56a40268d378550 diff --git a/Mate/Debug.hs b/Mate/Debug.hs index 1fb65e9..ba7ce31 100644 --- a/Mate/Debug.hs +++ b/Mate/Debug.hs @@ -28,8 +28,9 @@ mateDEBUG = False {-# INLINE printString #-} printString :: String -> String -> IO () -printString prefix str = when mateDEBUG $ hPutStr logHandle . (++) prefix $ str - +printString prefix str = do + when mateDEBUG $ hPutStr logHandle . (++) prefix $ str + hFlush logHandle printfJit, printfBb, printfMp, printfCp, printfStr, printfInfo :: String -> IO () {-