summaryrefslogtreecommitdiffstats
path: root/src/Much/Core.hs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2020-09-29 22:27:04 +0200
committertv <tv@krebsco.de>2020-09-29 22:28:58 +0200
commitbc75dbe4a72210352c2b1c0983b35658d307dca5 (patch)
tree5357f1efcb00e6920cece7b3cd3714d6c487cbbb /src/Much/Core.hs
parenteb61952f07e04e60a27a82783569fb65b6281789 (diff)
Much.API: make socket configurable
Diffstat (limited to 'src/Much/Core.hs')
-rw-r--r--src/Much/Core.hs3
1 files changed, 2 insertions, 1 deletions
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