summaryrefslogtreecommitdiffhomepage
path: root/HTTP/Server.hs
diff options
context:
space:
mode:
Diffstat (limited to 'HTTP/Server.hs')
-rw-r--r--HTTP/Server.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/HTTP/Server.hs b/HTTP/Server.hs
index e2165eb..c36a6cc 100644
--- a/HTTP/Server.hs
+++ b/HTTP/Server.hs
@@ -35,8 +35,7 @@ data ServerState = ServerState
}
newServerState :: Maybe LocalStorageDirectory -> ServerConfig -> IO ServerState
-newServerState d cfg = do
- l <- newLogger
+newServerState d cfg = withLogger $ \l ->
ServerState
<$> newEmptyTMVarIO
<*> pure d