From a47207c82bcf26403ae46d618f4c5dadcdf2f739 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 14 Aug 2022 15:54:44 +0100 Subject: Removed extra endl --- src/Main.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3