diff options
Diffstat (limited to 'Presence/XMPPServer.hs')
-rw-r--r-- | Presence/XMPPServer.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Presence/XMPPServer.hs b/Presence/XMPPServer.hs index b9719fa4..dd693b8c 100644 --- a/Presence/XMPPServer.hs +++ b/Presence/XMPPServer.hs | |||
@@ -24,6 +24,7 @@ module XMPPServer | |||
24 | ) where | 24 | ) where |
25 | 25 | ||
26 | import Debug.Trace | 26 | import Debug.Trace |
27 | import System.IO (hFlush,stdout) | ||
27 | import Control.Monad.Trans.Resource (runResourceT) | 28 | import Control.Monad.Trans.Resource (runResourceT) |
28 | import Control.Monad.Trans (lift) | 29 | import Control.Monad.Trans (lift) |
29 | import Control.Monad.IO.Class (MonadIO, liftIO) | 30 | import Control.Monad.IO.Class (MonadIO, liftIO) |
@@ -235,10 +236,10 @@ peerKeyToResolvedName k@(PeerKey { callBackAddress=addr }) = do | |||
235 | 236 | ||
236 | 237 | ||
237 | wlog :: String -> IO () | 238 | wlog :: String -> IO () |
238 | wlog s = putStrLn s | 239 | wlog s = putStrLn s >> hFlush stdout |
239 | 240 | ||
240 | wlogb :: ByteString -> IO () | 241 | wlogb :: ByteString -> IO () |
241 | wlogb s = Strict8.putStrLn s | 242 | wlogb s = Strict8.putStrLn s >> hFlush stdout |
242 | 243 | ||
243 | xmlStream :: ReadCommand -> WriteCommand -> ( Source IO XML.Event | 244 | xmlStream :: ReadCommand -> WriteCommand -> ( Source IO XML.Event |
244 | , Sink (Flush XML.Event) IO () ) | 245 | , Sink (Flush XML.Event) IO () ) |