src/HOL/Tools/Datatype/datatype_data.ML
changeset 42289 dafae095d733
parent 41489 8e2b8649507d
child 42290 b1f544c84040
equal deleted inserted replaced
42288:2074b31650e6 42289:dafae095d733
   242     let
   242     let
   243       val thy = ProofContext.theory_of ctxt;
   243       val thy = ProofContext.theory_of ctxt;
   244       val (vs, cos) = the_spec thy dtco;
   244       val (vs, cos) = the_spec thy dtco;
   245       val ty = Type (dtco, map TFree vs);
   245       val ty = Type (dtco, map TFree vs);
   246       val pretty_typ_bracket =
   246       val pretty_typ_bracket =
   247         Syntax.pretty_typ (Config.put Syntax.pretty_priority (Syntax.max_pri + 1) ctxt);
   247         Syntax.pretty_typ (Config.put pretty_priority (Syntax.max_pri + 1) ctxt);
   248       fun pretty_constr (co, tys) =
   248       fun pretty_constr (co, tys) =
   249         Pretty.block (Pretty.breaks
   249         Pretty.block (Pretty.breaks
   250           (Syntax.pretty_term ctxt (Const (co, tys ---> ty)) ::
   250           (Syntax.pretty_term ctxt (Const (co, tys ---> ty)) ::
   251             map pretty_typ_bracket tys));
   251             map pretty_typ_bracket tys));
   252       val pretty_datatype =
   252       val pretty_datatype =