src/Pure/ML/ml_context.ML
changeset 53171 a5e54d4d9081
parent 53169 e2d31807cbf6
child 55526 39708e59f4b0
--- a/src/Pure/ML/ml_context.ML	Fri Aug 23 20:09:34 2013 +0200
+++ b/src/Pure/ML/ml_context.ML	Fri Aug 23 20:35:50 2013 +0200
@@ -74,7 +74,7 @@
   let
     val ths' = Context.>>> (Context.map_theory_result
       (Global_Theory.store_thms (Binding.name name, ths)));
-    val _ = Context.>> (Context.map_theory (Stored_Thms.put ths'));
+    val _ = Theory.setup (Stored_Thms.put ths');
     val _ =
       if name = "" then ()
       else if not (ML_Syntax.is_identifier name) then
@@ -82,7 +82,7 @@
       else
         ML_Compiler.eval true Position.none
           (ML_Lex.tokenize ("val " ^ name ^ " = " ^ get ^ " ();"));
-    val _ = Context.>> (Context.map_theory (Stored_Thms.put []));
+    val _ = Theory.setup (Stored_Thms.put []);
   in () end;
 
 val ml_store_thms = ml_store "ML_Context.get_stored_thms";