aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-08-14 15:54:44 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-08-14 15:54:44 +0100
commita47207c82bcf26403ae46d618f4c5dadcdf2f739 (patch)
tree0614b022ae61de67498efbcb295214199458910f /src
parentba41cd3fb6ec374ffc6ddfcef785244cac4f924e (diff)
downloadmicro-lang-hs-a47207c82bcf26403ae46d618f4c5dadcdf2f739.tar.gz
micro-lang-hs-a47207c82bcf26403ae46d618f4c5dadcdf2f739.zip
Removed extra endl
Diffstat (limited to 'src')
-rw-r--r--src/Main.hs4
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