src/HOL/Tools/Datatype/datatype_data.ML
changeset 38767 d8da44a8dd25
parent 38756 d07959fabde6
child 39557 fe5722fce758
equal deleted inserted replaced
38766:8891f4520d16 38767:d8da44a8dd25
   255           (Pretty.command "datatype" :: Pretty.brk 1 ::
   255           (Pretty.command "datatype" :: Pretty.brk 1 ::
   256            Syntax.pretty_typ ctxt ty ::
   256            Syntax.pretty_typ ctxt ty ::
   257            Pretty.str " =" :: Pretty.brk 1 ::
   257            Pretty.str " =" :: Pretty.brk 1 ::
   258            flat (separate [Pretty.brk 1, Pretty.str "| "]
   258            flat (separate [Pretty.brk 1, Pretty.str "| "]
   259              (map (single o pretty_constr) cos)));
   259              (map (single o pretty_constr) cos)));
   260     in Thy_Output.output (Thy_Output.maybe_pretty_source (K pretty_datatype) src [()]) end);
   260     in
       
   261       Thy_Output.output ctxt (Thy_Output.maybe_pretty_source (K (K pretty_datatype)) ctxt src [()])
       
   262     end);
   261 
   263 
   262 
   264 
   263 
   265 
   264 (** abstract theory extensions relative to a datatype characterisation **)
   266 (** abstract theory extensions relative to a datatype characterisation **)
   265 
   267