aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apps/Prompt.hs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/Prompt.hs')
-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