diff src/elab_err.sml @ 339:075b36dbb1a4

Crud supports INSERT
author Adam Chlipala <adamc@hcoop.net>
date Sun, 14 Sep 2008 15:10:04 -0400
parents eec65c11d3e2
children 6a0e54400805
line wrap: on
line diff
--- a/src/elab_err.sml	Sun Sep 14 11:02:18 2008 -0400
+++ b/src/elab_err.sml	Sun Sep 14 15:10:04 2008 -0400
@@ -144,7 +144,7 @@
        UnboundExp of ErrorMsg.span * string
      | UnboundStrInExp of ErrorMsg.span * string
      | Unify of exp * con * con * cunify_error
-     | Unif of string * con
+     | Unif of string * ErrorMsg.span * con
      | WrongForm of string * exp * con
      | IncompatibleCons of con * con
      | DuplicatePatternVariable of ErrorMsg.span * string
@@ -173,8 +173,8 @@
                      ("Have con", p_con env c1),
                      ("Need con", p_con env c2)];
          cunifyError env uerr)
-      | Unif (action, c) =>
-        (ErrorMsg.errorAt (#2 c) ("Unification variable blocks " ^ action);
+      | Unif (action, loc, c) =>
+        (ErrorMsg.errorAt loc ("Unification variable blocks " ^ action);
          eprefaces' [("Con", p_con env c)])
       | WrongForm (variety, e, t) =>
         (ErrorMsg.errorAt (#2 e) ("Expression is not a " ^ variety);