aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-02-17 12:04:53 +0100
committerTom Smeding <tom@tomsmeding.com>2024-02-17 12:04:53 +0100
commit720372e3deac26a064fb1c711db2ccf54e655fab (patch)
treeaa721469e4c12f28d7b5c630e2d807bee63c9899 /src/Main.hs
parent3faca807fe96f2cefa50023fe373d8bcf1430121 (diff)
Lots of parser work
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index c9de0cc..750f749 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -2,6 +2,7 @@
{-# LANGUAGE TupleSections #-}
module Main where
+import Data.List (intersperse)
import System.Environment (getArgs)
import System.Exit (die, exitFailure)
@@ -17,10 +18,10 @@ main = do
prog <- case parse fname source of
This errs -> do
- mapM_ (putStrLn . printErrMsg) errs
+ sequence_ $ intersperse (putStrLn "") (map (putStrLn . printErrMsg) errs)
exitFailure
These errs res -> do
- mapM_ (putStrLn . printErrMsg) errs
+ sequence_ $ intersperse (putStrLn "") (map (putStrLn . printErrMsg) errs)
return res
That res -> return res