src/HOL/Tools/record_package.ML
changeset 4970 8b65444edbb0
parent 4967 c9c481bc0216
child 5001 9de7fda0a6df
equal deleted inserted replaced
4969:61fd5c1d733f 4970:8b65444edbb0
   619 (*we do all preparations and error checks here, deferring the real
   619 (*we do all preparations and error checks here, deferring the real
   620   work to record_definition*)
   620   work to record_definition*)
   621 
   621 
   622 fun gen_add_record prep_typ prep_raw_parent (params, bname) raw_parent raw_fields thy =
   622 fun gen_add_record prep_typ prep_raw_parent (params, bname) raw_parent raw_fields thy =
   623   let
   623   let
   624     val _ = Theory.require thy "Record" "record definitions";
   624     val _ = Theory.requires thy "Record" "record definitions";
   625     val sign = Theory.sign_of thy;
   625     val sign = Theory.sign_of thy;
   626     val _ = writeln ("Defining record " ^ quote bname ^ " ...");
   626     val _ = writeln ("Defining record " ^ quote bname ^ " ...");
   627 
   627 
   628 
   628 
   629     (* parents *)
   629     (* parents *)