summaryrefslogtreecommitdiffstats
path: root/src/Much/API/Config.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/API/Config.hs
parenteb61952f07e04e60a27a82783569fb65b6281789 (diff)
Much.API: make socket configurable
Diffstat (limited to 'src/Much/API/Config.hs')
-rw-r--r--src/Much/API/Config.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Much/API/Config.hs b/src/Much/API/Config.hs
new file mode 100644
index 0000000..2e3b1cc
--- /dev/null
+++ b/src/Much/API/Config.hs
@@ -0,0 +1,11 @@
+module Much.API.Config where
+
+data Config = Config
+ { socketPath :: FilePath
+ }
+
+emptyConfig :: Config
+emptyConfig =
+ Config
+ { socketPath = "/tmp/much.api.sock"
+ }