--- a/src/HOL/Tools/datatype_hooks.ML Fri Aug 17 13:58:58 2007 +0200
+++ b/src/HOL/Tools/datatype_hooks.ML Fri Aug 17 13:58:59 2007 +0200
@@ -30,6 +30,6 @@
DatatypeHooksData.map (cons (serial (), hook));
fun all dtcos thy =
- fold (fn (_, f) => f dtcos) (DatatypeHooksData.get thy) thy;
+ fold_rev (fn (_, f) => f dtcos) (DatatypeHooksData.get thy) thy;
end;
--- a/src/HOL/Tools/typecopy_package.ML Fri Aug 17 13:58:58 2007 +0200
+++ b/src/HOL/Tools/typecopy_package.ML Fri Aug 17 13:58:59 2007 +0200
@@ -78,7 +78,7 @@
(TypecopyData.map o apsnd o cons) (serial (), hook);
fun invoke_hooks tyco_info thy =
- fold (fn (_, f) => f tyco_info) ((snd o TypecopyData.get) thy) thy;
+ fold_rev (fn (_, f) => f tyco_info) ((snd o TypecopyData.get) thy) thy;
(* add a type copy *)