hlint suggestions

This commit is contained in:
Jonathan Lamothe
2020-03-05 05:15:58 -05:00
parent 53c49492cb
commit 9ee33cbd03
6 changed files with 21 additions and 22 deletions

View File

@@ -164,9 +164,7 @@ numPromptWithFallback pStr fallback act = Prompt
, promptProcessChar = \ch str -> if isDigit ch
then str ++ [ch]
else str
, promptAction = \inStr -> case readMaybe inStr of
Nothing -> fallback
Just n -> act n
, promptAction = maybe fallback act . readMaybe
, promptSpecialKey = const $ return ()
}