m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2018-05-14 16:59:04 +0200
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2018-05-14 16:59:04 +0200
commita0f6a62c14d49973529537b28969e4179e5451e2 (patch)
tree4bbacadef62b003e9151bfc54961fbe214ebccd0
parent76478dd79705313860c00008cee75c48db814ecc (diff)
Change syntax error message
-rw-r--r--Schmim.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Schmim.hs b/Schmim.hs
index 3c0bc79..de166a3 100644
--- a/Schmim.hs
+++ b/Schmim.hs
@@ -28,7 +28,7 @@ runFile v p f = readFile f >>= run v p
run :: Verbosity -> ParseFun Exp -> String -> IO ()
run v p s = let ts = myLLexer s in case p ts of
- Bad s -> do putStrLn "\nParse Failed...\n"
+ Bad s -> do putStrLn "Syntax error"
exitFailure
Ok tree -> do let res = interp tree
case res of