From cab564e400590cbd8a88e190fe381a74655005cf Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 5 Mar 2022 18:14:28 +0100 Subject: Multiple file support for generating assembly --- src/Fun/Syntax.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fun/Syntax.hs') diff --git a/src/Fun/Syntax.hs b/src/Fun/Syntax.hs index c426a03..1c4846c 100644 --- a/src/Fun/Syntax.hs +++ b/src/Fun/Syntax.hs @@ -10,7 +10,7 @@ mergeSyntax :: [Either [SyntaxError] a] -> ([a] -> b) -> Either [SyntaxError] b mergeSyntax d c | any isLeft d = Left $ concat $ lefts d | otherwise = Right $ c $ rights d --- TODO: Disallow same declarations in entire tree (w/o visibility) +-- TODO: Overloading only if first element is different checkFunctionArity :: Block -> Either [SyntaxError] Block checkFunctionArity (FunctionBlock decl defns) = -- cgit v1.2.3