From 3a109e79363b52e22da35aaecf666014a75fcb63 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 7 Feb 2022 20:44:06 +0100 Subject: server: simple toml config --- server/Main.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/Main.hs') diff --git a/server/Main.hs b/server/Main.hs index ecaf6b7..0fbc4b4 100644 --- a/server/Main.hs +++ b/server/Main.hs @@ -71,7 +71,6 @@ app config = main :: IO () main = do + config' <- loadConfig "./config.toml" state <- newMVar defaultState - let config = Config "/tmp" 8080 "main.json" "./config.json" - config' <- loadConfig config - run (port config) (app config' state) + run (port config') (app config' state) -- cgit v1.2.3