summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/App/Config.hs
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2020-10-09 17:51:07 +0100
committerjao <jao@gnu.org>2020-10-09 17:51:07 +0100
commit407866c433735e510b6bde2d06e2a18cff22c470 (patch)
treef7f73bc4f30f52844f5582c321e97d0375dce1b2 /src/Xmobar/App/Config.hs
parente71512b7c961ab379aee98c2f4d65ad4bdd3c5bf (diff)
downloadxmobar-407866c433735e510b6bde2d06e2a18cff22c470.tar.gz
xmobar-407866c433735e510b6bde2d06e2a18cff22c470.tar.bz2
hlinting
Diffstat (limited to 'src/Xmobar/App/Config.hs')
-rw-r--r--src/Xmobar/App/Config.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Xmobar/App/Config.hs b/src/Xmobar/App/Config.hs
index a183128..d17577e 100644
--- a/src/Xmobar/App/Config.hs
+++ b/src/Xmobar/App/Config.hs
@@ -21,6 +21,7 @@ module Xmobar.App.Config (defaultConfig,
xmobarConfigFile) where
import Control.Monad (when, filterM)
+import Data.Functor ((<&>))
import System.Environment
import System.Directory
@@ -105,7 +106,7 @@ findFirstDirOf create possibles = do
go [] = return Nothing
go (x:xs) = do
exists <- x >>= doesDirectoryExist
- if exists then x >>= return . Just else go xs
+ if exists then x <&> Just else go xs
-- | Simple wrapper around @findFirstDirOf@ that allows the primary
-- path to be specified by an environment variable.