primrec: empty attributes;
authorwenzelm
Thu, 11 Mar 1999 21:56:22 +0100
changeset 6356 6c01697e082e
parent 6355 f05492a711b1
child 6357 12448b8f92fb
primrec: empty attributes;
src/HOL/thy_syntax.ML
--- a/src/HOL/thy_syntax.ML	Thu Mar 11 21:55:23 1999 +0100
+++ b/src/HOL/thy_syntax.ML	Thu Mar 11 21:56:22 1999 +0100
@@ -193,9 +193,9 @@
   let
     val names = map (fn (s, _) => if s = "" then "_" else s) eqns
   in
-    ";\nval (thy, " ^ mk_list names ^
-    ") = PrimrecPackage.add_primrec " ^ alt_name ^ " " ^
-      mk_list (map mk_pair (map (apfst quote) eqns)) ^ " " ^ " thy;\n\
+    ";\nval (thy, " ^ mk_list names ^ ") = PrimrecPackage.add_primrec " ^ alt_name ^ " " ^
+    mk_list (map (fn (x, y) => mk_pair (mk_pair (quote x, y), "[]")) eqns) ^
+    " " ^ " thy;\n\
     \val thy = thy\n"
   end;