Minor edits.

This commit is contained in:
Derek Taylor
2020-06-06 18:41:36 -05:00
parent 271fd84de3
commit 208bfc339c

View File

@@ -218,7 +218,7 @@ dtXPConfig = def
calcPrompt :: XPConfig -> String -> X () calcPrompt :: XPConfig -> String -> X ()
calcPrompt c ans = calcPrompt c ans =
inputPrompt c (trim ans) ?+ \input -> inputPrompt c (trim ans) ?+ \input ->
liftIO(runProcessWithInput "whereis" [input] "") >>= calcPrompt c liftIO(runProcessWithInput "qalc" [input] "") >>= calcPrompt c
where where
trim = f . f trim = f . f
where f = reverse . dropWhile isSpace where f = reverse . dropWhile isSpace