aboutsummaryrefslogtreecommitdiff
path: root/src/Error.hs
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-08-16 23:15:20 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-08-16 23:15:20 +0100
commit7ac5c089d447c11bb9c9152bb30e1cff5b96267e (patch)
treedfe715686dd3b86cbd41b6d342f12a8d63192d67 /src/Error.hs
parent7b57942b3a10e51fdb7f78d276dc0187a22c3871 (diff)
downloadmicro-lang-hs-7ac5c089d447c11bb9c9152bb30e1cff5b96267e.tar.gz
micro-lang-hs-7ac5c089d447c11bb9c9152bb30e1cff5b96267e.zip
Missing cases
Diffstat (limited to 'src/Error.hs')
-rw-r--r--src/Error.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Error.hs b/src/Error.hs
index 19f88fd..b528f9e 100644
--- a/src/Error.hs
+++ b/src/Error.hs
@@ -12,6 +12,9 @@ data Error
instance Show Error where
show (Error message pos) =
show pos ++ " error: " ++ message
+ -- XXX: can we do this differently?
+ show (TypeError message pos) =
+ show pos ++ " error: " ++ message
showParserError :: ParseError -> String
showParserError error =