diff options
author | Kierán Meinhardt <kieran.meinhardt@gmail.com> | 2020-10-01 20:58:23 +0200 |
---|---|---|
committer | Kierán Meinhardt <kieran.meinhardt@gmail.com> | 2020-10-01 20:58:23 +0200 |
commit | 92a67aaa55f5fee4a2b9a7357f1b9956a84cd188 (patch) | |
tree | 6881b60bed64dc03aaf230a16b6762f3983a88ae /src/Much/API | |
parent | eff6fdb05bd33f6842034f68e8cb4b83503fd5f3 (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.hs | 6 |
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" } |