From bc75dbe4a72210352c2b1c0983b35658d307dca5 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 29 Sep 2020 22:27:04 +0200 Subject: Much.API: make socket configurable --- src/Much/Core.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Much/Core.hs') diff --git a/src/Much/Core.hs b/src/Much/Core.hs index 769fd03..b0f9a51 100644 --- a/src/Much/Core.hs +++ b/src/Much/Core.hs @@ -70,6 +70,7 @@ emptyState = State , unreadSearch = SGR [38,5,250] } , tagSymbols = M.empty + , apiConfig = Much.API.emptyConfig } @@ -164,7 +165,7 @@ runState q0 = do threadIds <- mapM forkIO [ forever $ scan stdin >>= putEvent . EScan - , Much.API.main putEvent + , Much.API.main (apiConfig q1) putEvent ] winchHandler putEvent -- cgit v1.2.3