summaryrefslogtreecommitdiffstats
path: root/src/Much/API
diff options
context:
space:
mode:
authorKierán Meinhardt <kieran.meinhardt@gmail.com>2020-10-01 20:58:23 +0200
committerKierán Meinhardt <kieran.meinhardt@gmail.com>2020-10-01 20:58:23 +0200
commit92a67aaa55f5fee4a2b9a7357f1b9956a84cd188 (patch)
tree6881b60bed64dc03aaf230a16b6762f3983a88ae /src/Much/API
parenteff6fdb05bd33f6842034f68e8cb4b83503fd5f3 (diff)
State: add options for attachment saving
use Data.Default for Much.State.State, Much.State.ColorConfig, Much.API.Config refactor saveAttachment and openAttachment actions
Diffstat (limited to 'src/Much/API')
-rw-r--r--src/Much/API/Config.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Much/API/Config.hs b/src/Much/API/Config.hs
index 2e3b1cc..0a45068 100644
--- a/src/Much/API/Config.hs
+++ b/src/Much/API/Config.hs
@@ -1,11 +1,13 @@
module Much.API.Config where
+import Data.Default
+
data Config = Config
{ socketPath :: FilePath
}
-emptyConfig :: Config
-emptyConfig =
+instance Default Config where
+ def =
Config
{ socketPath = "/tmp/much.api.sock"
}