Remove tabs

This commit is contained in:
Rnhmjoj 2015-02-28 00:50:25 +01:00
parent ed5d0a58d3
commit 872d251eca

View File

@ -9,14 +9,14 @@ import System.Console.Readline
main :: IO ()
main = do
line <- readline ""
case fromMaybe "" line of
"" -> main
"q" -> return ()
exp -> do
putStrLn $ result (rpn exp) ++ "\n"
addHistory exp
main
line <- readline ""
case fromMaybe "" line of
"" -> main
"q" -> return ()
exp -> do
putStrLn $ result (rpn exp) ++ "\n"
addHistory exp
main
-- Pretty print RPN result/errors