Type inference for functions works YAAAY
[cc1516.git] / spl.icl
diff --git a/spl.icl b/spl.icl
index 8004933..cf3d5f3 100644 (file)
--- a/spl.icl
+++ b/spl.icl
@@ -69,9 +69,9 @@ Start w
                                stdin <<<  "//PARSER\n" <<< toString parseOut <<< "//PARSER\n")
                        = case sem parseOut of
                                (Left e) = snd $ fclose (stdin <<< join "\n" (map toString e)) w
-                               (Right constraints)
+                               (Right ast)
                                # stdin = if (not args.sem) stdin (stdin
-                                       <<< "//SEM G\n" <<< printConstraints constraints <<< "//SEMA\n")
+                                       <<< "//SEM G\n" <<< toString ast <<< "//SEMA\n")
                                = snd $ fclose (stdin <<< "\n") w
                where
                        printConstraints :: Constraints -> String