src/HOL/Tools/inductive_codegen.ML
changeset 20897 3f8d2834b2c4
parent 20071 8f3e1ddb50e6
child 21022 3634641f9405
--- a/src/HOL/Tools/inductive_codegen.ML	Sat Oct 07 07:41:56 2006 +0200
+++ b/src/HOL/Tools/inductive_codegen.ML	Mon Oct 09 02:19:49 2006 +0200
@@ -47,7 +47,7 @@
 
 fun add_node (g, x) = Graph.new_node (x, ()) g handle Graph.DUP _ => g;
 
-fun add optmod = Thm.declaration_attribute (fn thm => Context.map_theory (fn thy =>
+fun add optmod = Thm.declaration_attribute (fn thm => Context.mapping (fn thy =>
   let
     val {intros, graph, eqns} = CodegenData.get thy;
     fun thyname_of s = (case optmod of
@@ -71,7 +71,7 @@
                (s, Symtab.lookup_list eqns s @ [(thm, thyname_of s)])} thy
       | _ => (warn thm; thy))
     | _ => (warn thm; thy))
-  end));
+  end) I);
 
 fun get_clauses thy s =
   let val {intros, graph, ...} = CodegenData.get thy