summaryrefslogtreecommitdiff
path: root/src/Network/StreamServer.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/StreamServer.hs')
-rw-r--r--src/Network/StreamServer.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Network/StreamServer.hs b/src/Network/StreamServer.hs
index 6a36ed00..01680b77 100644
--- a/src/Network/StreamServer.hs
+++ b/src/Network/StreamServer.hs
@@ -57,6 +57,7 @@ import System.IO (Handle)
57import Control.Concurrent.MVar (newMVar) 57import Control.Concurrent.MVar (newMVar)
58 58
59import Network.SocketLike 59import Network.SocketLike
60import DPut
60 61
61data ServerHandle = ServerHandle Socket (Weak ThreadId) 62data ServerHandle = ServerHandle Socket (Weak ThreadId)
62 63
@@ -89,7 +90,7 @@ bshow e = show e
89-- | Send a string to stderr. Not exported. Default 'serverWarn' when 90-- | Send a string to stderr. Not exported. Default 'serverWarn' when
90-- 'withSession' is used to configure the server. 91-- 'withSession' is used to configure the server.
91warnStderr :: String -> IO () 92warnStderr :: String -> IO ()
92warnStderr str = hPutStrLn stderr str >> hFlush stderr 93warnStderr str = dput XMisc str >> hFlush stderr
93 94
94data ServerConfig = ServerConfig 95data ServerConfig = ServerConfig
95 { serverWarn :: String -> IO () 96 { serverWarn :: String -> IO ()