From ab29ac3337d2be88ae3288652e999873be1dcf14 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Tue, 2 Sep 2008 17:31:45 -0400 Subject: Compiling a parametrized query the inefficient way --- src/tag.sml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tag.sml') diff --git a/src/tag.sml b/src/tag.sml index a8b59c5a..34595732 100644 --- a/src/tag.sml +++ b/src/tag.sml @@ -216,7 +216,9 @@ fun tag file = ((EApp (app, (ERel n, loc)), loc), n - 1)) ((ENamed f, loc), length args - 1) args + val app = (EApp (app, (ERecord [], loc)), loc) val body = (EWrite app, loc) + val t = (TFun (unit, unit), loc) val (abs, _, t) = foldr (fn (t, (abs, n, rest)) => ((EAbs ("x" ^ Int.toString n, t, @@ -224,7 +226,7 @@ fun tag file = abs), loc), n + 1, (TFun (t, rest), loc))) - (body, 0, unit) args + (body, 0, t) args in (abs, t) end -- cgit v1.2.3