diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-08-14 15:54:44 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-08-14 15:54:44 +0100 |
commit | a47207c82bcf26403ae46d618f4c5dadcdf2f739 (patch) | |
tree | 0614b022ae61de67498efbcb295214199458910f /src/Main.hs | |
parent | ba41cd3fb6ec374ffc6ddfcef785244cac4f924e (diff) | |
download | micro-lang-hs-a47207c82bcf26403ae46d618f4c5dadcdf2f739.tar.gz micro-lang-hs-a47207c82bcf26403ae46d618f4c5dadcdf2f739.zip |
Removed extra endl
Diffstat (limited to 'src/Main.hs')
-rw-r--r-- | src/Main.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs index 3c75d02..6df7e6c 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -7,7 +7,7 @@ import Error (showErrorList) import Lexer (scan) import Parser (parse, parseFromFile) import System.Exit (exitFailure) -import System.IO (hPutStrLn, stderr, stdout) +import System.IO (hPutStr, hPutStrLn, stderr, stdout) main :: IO () main = do @@ -18,4 +18,4 @@ main = do res <- return $ evalState (compileAll ast) startState case res of Right _ -> print ast - Left errs -> hPutStrLn stderr $ showErrorList errs + Left errs -> hPutStr stderr $ showErrorList errs |