aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apps/Prompt.hs
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-08-20 15:54:43 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-08-20 15:54:43 +0300
commit87ae152b71317b99bcbeeab80145ae1f3cf22d83 (patch)
tree0ba746abfb44730f07cf7681f90e6340cfaa0a9b /apps/Prompt.hs
parentlist_path: no weird symbols in output (diff)
downloadwindows-env-87ae152b71317b99bcbeeab80145ae1f3cf22d83.tar.gz
windows-env-87ae152b71317b99bcbeeab80145ae1f3cf22d83.zip
fix HLint warnings
Diffstat (limited to '')
-rw-r--r--apps/Prompt.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/Prompt.hs b/apps/Prompt.hs
index 07c2299..0beecc2 100644
--- a/apps/Prompt.hs
+++ b/apps/Prompt.hs
@@ -9,7 +9,7 @@ module Prompt
, withoutPrompt
) where
-import Control.Monad (liftM, void, when)
+import Control.Monad (void, when)
import Data.Char (toLower)
import System.IO (hFlush, stdout)
@@ -21,7 +21,7 @@ prompt msg = do
promptYesNo :: String -> IO Bool
promptYesNo msg = do
- response <- liftM (map toLower) $ prompt msg
+ response <- map toLower <$> prompt msg
if response `elem` yeses
then return True
else if response `elem` noes