src/HOL/Tools/Datatype/datatype_data.ML
changeset 55951 c07d184aebe9
parent 55763 4b3907cb5654
child 55952 2f85cc6c27d4
equal deleted inserted replaced
55950:3bb5c7179234 55951:c07d184aebe9
   232 
   232 
   233 
   233 
   234 (** document antiquotation **)
   234 (** document antiquotation **)
   235 
   235 
   236 val antiq_setup =
   236 val antiq_setup =
   237   Thy_Output.antiquotation @{binding datatype} (Args.type_name true)
   237   Thy_Output.antiquotation @{binding datatype} (Args.type_name {proper = false, strict = true})
   238     (fn {source = src, context = ctxt, ...} => fn dtco =>
   238     (fn {source = src, context = ctxt, ...} => fn dtco =>
   239       let
   239       let
   240         val thy = Proof_Context.theory_of ctxt;
   240         val thy = Proof_Context.theory_of ctxt;
   241         val (vs, cos) = the_spec thy dtco;
   241         val (vs, cos) = the_spec thy dtco;
   242         val ty = Type (dtco, map TFree vs);
   242         val ty = Type (dtco, map TFree vs);