tuned;
authorwenzelm
Fri, 13 Jan 2006 01:13:05 +0100
changeset 18667 85d04c28224a
parent 18666 f37a43cec547
child 18668 4a15c09bd46a
tuned;
src/Pure/Isar/context_rules.ML
src/Pure/sign.ML
--- a/src/Pure/Isar/context_rules.ML	Fri Jan 13 01:13:03 2006 +0100
+++ b/src/Pure/Isar/context_rules.ML	Fri Jan 13 01:13:05 2006 +0100
@@ -163,9 +163,9 @@
 
 (* wrappers *)
 
-fun gen_add_wrapper upd w = Context.the_theory o
-  Rules.map (fn (rs as Rules {next, rules, netpairs, wrappers}) =>
-    make_rules next rules netpairs (upd (fn ws => (w, stamp ()) :: ws) wrappers)) o Context.Theory;
+fun gen_add_wrapper upd w =
+  Context.map_theory (Rules.map (fn (rs as Rules {next, rules, netpairs, wrappers}) =>
+    make_rules next rules netpairs (upd (fn ws => (w, stamp ()) :: ws) wrappers)));
 
 val addSWrapper = gen_add_wrapper Library.apfst;
 val addWrapper = gen_add_wrapper Library.apsnd;
--- a/src/Pure/sign.ML	Fri Jan 13 01:13:03 2006 +0100
+++ b/src/Pure/sign.ML	Fri Jan 13 01:13:05 2006 +0100
@@ -724,7 +724,7 @@
       val syn' = Syntax.extend_consts [bclass] syn;
       val tsig' = Type.add_classes (pp thy) naming [(bclass, classes)] tsig;
     in (naming, syn', tsig', consts) end)
-  |> add_consts_i [(const_of_class bclass, a_itselfT --> propT, Syntax.NoSyn)];
+  |> add_consts_i [(const_of_class bclass, a_itselfT --> propT, NoSyn)];
 
 val add_classes = fold (gen_add_class intern_class);
 val add_classes_i = fold (gen_add_class (K I));