aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-08-20 22:07:09 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-08-20 22:07:09 +0100
commita398ec460b923d0ade71565e09b8c89b022746a6 (patch)
tree076623a30f99148b158a07bd9288b0fbff625942
parente7f490bcaad1513e10b77973bb52e686b44499a8 (diff)
downloadmicro-lang-hs-a398ec460b923d0ade71565e09b8c89b022746a6.tar.gz
micro-lang-hs-a398ec460b923d0ade71565e09b8c89b022746a6.zip
Qualified as non callable error
-rw-r--r--src/Compiler.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compiler.hs b/src/Compiler.hs
index 06df1ae..0228b90 100644
--- a/src/Compiler.hs
+++ b/src/Compiler.hs
@@ -116,7 +116,7 @@ compile x = do
case r of
Just err -> addError $ Error TypeError err pos
Nothing -> return $ Right rtyp
- Right _ -> addError $ Error GenericError "non callable value in function call" pos
+ Right _ -> addError $ Error NonCallable "non callable value in function call" pos
_ -> return $ Right Nothing
(A.Return value pos) -> do
(ev, errs) <- get