Remove tabs
This commit is contained in:
parent
ed5d0a58d3
commit
872d251eca
16
hsilop.hs
16
hsilop.hs
@ -9,14 +9,14 @@ import System.Console.Readline
|
|||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = do
|
main = do
|
||||||
line <- readline "ꟼ "
|
line <- readline "ꟼ "
|
||||||
case fromMaybe "" line of
|
case fromMaybe "" line of
|
||||||
"" -> main
|
"" -> main
|
||||||
"q" -> return ()
|
"q" -> return ()
|
||||||
exp -> do
|
exp -> do
|
||||||
putStrLn $ result (rpn exp) ++ "\n"
|
putStrLn $ result (rpn exp) ++ "\n"
|
||||||
addHistory exp
|
addHistory exp
|
||||||
main
|
main
|
||||||
|
|
||||||
|
|
||||||
-- Pretty print RPN result/errors
|
-- Pretty print RPN result/errors
|
||||||
|
Loading…
Reference in New Issue
Block a user