diff options
author | defanor <defanor@uberspace.net> | 2017-12-11 17:22:00 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2017-12-11 18:18:17 +0300 |
commit | 49772469e722419764377ad9449520512626c407 (patch) | |
tree | ace08f8ec7851dc49b6e471c024e0fc5e8302de1 /Pancake/Configuration.hs | |
parent | 688c9aeb5a2077609ed5ad4be3d15061a9d2dc7a (diff) |
Improve code style in a couple of places
- `sum lens /= 0` implies `length lens /= 0`, so no need to check the
latter after the former.
- Don't use `concat` for just two elements.
Diffstat (limited to 'Pancake/Configuration.hs')
-rw-r--r-- | Pancake/Configuration.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Pancake/Configuration.hs b/Pancake/Configuration.hs index 9ad60dc..2748907 100644 --- a/Pancake/Configuration.hs +++ b/Pancake/Configuration.hs @@ -109,9 +109,8 @@ instance Default Config where , indentDivs = False } where - curl = concat - [ "curl --compressed -4 -L " - , "-w \"\n-pancake-\nuri: %{url_effective}\ntype: %{content_type}\n\" "] + curl = "curl --compressed -4 -L " ++ + "-w \"\n-pancake-\nuri: %{url_effective}\ntype: %{content_type}\n\" " -- | Loads configuration from an XDG config directory. loadConfig :: MonadIO m => m Config |