import Text.Printf
import System.IO
import System.IO.Unsafe
+import Control.Monad
{-# NOINLINE logHandle #-}
{-# INLINE printString #-}
printString :: String -> String -> IO ()
-printString prefix str = if mateDEBUG
- then hPutStr logHandle . (++) prefix $ str
- else return ()
-
+printString prefix str = do
+ when mateDEBUG $ hPutStr logHandle . (++) prefix $ str
+ hFlush logHandle
printfJit, printfBb, printfMp, printfCp, printfStr, printfInfo :: String -> IO ()
{-