aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/ListPaths.hs
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-06-12 04:07:30 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-06-12 04:07:30 +0300
commitf446a04e4100ed52e9d100e8e9705d358943a4ec (patch)
tree40ce78f56691dd85fe98b406b7de1b2c3b1d7551 /app/ListPaths.hs
parentsetenv: crap, another bug (diff)
downloadwindows-env-f446a04e4100ed52e9d100e8e9705d358943a4ec.tar.gz
windows-env-f446a04e4100ed52e9d100e8e9705d358943a4ec.zip
refactoring
Diffstat (limited to '')
-rw-r--r--app/ListPaths.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/ListPaths.hs b/app/ListPaths.hs
index c507d39..0c8483c 100644
--- a/app/ListPaths.hs
+++ b/app/ListPaths.hs
@@ -70,7 +70,9 @@ listPaths options = runExceptT doListPaths >>= either ioError return
query = queryFrom $ optSource options
- queryFrom Environment = lift $ WindowsEnv.Value False <$> fromMaybe "" <$> lookupEnv varName
+ queryFrom Environment = lift $ WindowsEnv.Value False
+ <$> fromMaybe ""
+ <$> lookupEnv varName
queryFrom (Registry profile) = WindowsEnv.query profile varName
doListPaths = do