diff options
Diffstat (limited to 'src/Network/StreamServer.hs')
-rw-r--r-- | src/Network/StreamServer.hs | 3 |
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) | |||
57 | import Control.Concurrent.MVar (newMVar) | 57 | import Control.Concurrent.MVar (newMVar) |
58 | 58 | ||
59 | import Network.SocketLike | 59 | import Network.SocketLike |
60 | import DPut | ||
60 | 61 | ||
61 | data ServerHandle = ServerHandle Socket (Weak ThreadId) | 62 | data 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. |
91 | warnStderr :: String -> IO () | 92 | warnStderr :: String -> IO () |
92 | warnStderr str = hPutStrLn stderr str >> hFlush stderr | 93 | warnStderr str = dput XMisc str >> hFlush stderr |
93 | 94 | ||
94 | data ServerConfig = ServerConfig | 95 | data ServerConfig = ServerConfig |
95 | { serverWarn :: String -> IO () | 96 | { serverWarn :: String -> IO () |