added hook for case const defs
authorhaftmann
Wed, 14 Jun 2006 12:12:01 +0200
changeset 19886 6bec6daac280
parent 19885 00f70ad51778
child 19887 e3a03f1f54eb
added hook for case const defs
src/HOL/Tools/datatype_codegen.ML
--- a/src/HOL/Tools/datatype_codegen.ML	Wed Jun 14 12:11:23 2006 +0200
+++ b/src/HOL/Tools/datatype_codegen.ML	Wed Jun 14 12:12:01 2006 +0200
@@ -10,6 +10,8 @@
   val get_datatype_spec_thms: theory -> string
     -> (((string * sort) list * (string * typ list) list) * tactic) option
   val get_all_datatype_cons: theory -> (string * string) list
+  val add_datatype_case_const: string -> theory -> theory
+  val add_datatype_case_defs: string -> theory -> theory
   val setup: theory -> theory
 end;
 
@@ -353,6 +355,7 @@
     DatatypePackage.get_datatype_spec #>
   CodegenPackage.set_get_all_datatype_cons
     get_all_datatype_cons #>
-  DatatypeHooks.add add_datatype_case_const
+  DatatypeHooks.add add_datatype_case_const #>
+  DatatypeHooks.add add_datatype_case_defs
 
 end;