src/HOL/Tools/datatype_rep_proofs.ML
changeset 21365 4ee8e2702241
parent 21291 d59cbb8ce002
child 21525 1b18b5892dc4
--- a/src/HOL/Tools/datatype_rep_proofs.ML	Tue Nov 14 22:16:54 2006 +0100
+++ b/src/HOL/Tools/datatype_rep_proofs.ML	Tue Nov 14 22:16:55 2006 +0100
@@ -173,13 +173,13 @@
       map (make_intr rep_set_name (length constrs))
         ((1 upto (length constrs)) ~~ constrs)) (descr' ~~ rep_set_names'));
 
-    val (thy2, {raw_induct = rep_induct, intrs = rep_intrs, ...}) =
+    val ({raw_induct = rep_induct, intrs = rep_intrs, ...}, thy2) =
       setmp InductivePackage.quiet_mode (!quiet_mode)
         (TheoryTarget.init NONE #>
          InductivePackage.add_inductive_i false big_rec_name false true false
            (map (fn s => (s, SOME UnivT', NoSyn)) rep_set_names') []
            (map (fn x => (("", []), x)) intr_ts) [] #>
-         apfst (ProofContext.theory_of o LocalTheory.exit)) thy1;
+         apsnd (ProofContext.theory_of o LocalTheory.exit)) thy1;
 
     (********************************* typedef ********************************)