src/Pure/Isar/bundle.ML
changeset 50301 56b4c9afd7be
parent 47314 644a3b74cfd0
child 50739 5165d7e6d3b9
equal deleted inserted replaced
50300:6658097758ba 50301:56b4c9afd7be
   136     fun prt_fact (ths, []) = map prt_thm ths
   136     fun prt_fact (ths, []) = map prt_thm ths
   137       | prt_fact (ths, atts) = Pretty.enclose "(" ")"
   137       | prt_fact (ths, atts) = Pretty.enclose "(" ")"
   138           (Pretty.breaks (map prt_thm ths)) :: Attrib.pretty_attribs ctxt atts;
   138           (Pretty.breaks (map prt_thm ths)) :: Attrib.pretty_attribs ctxt atts;
   139 
   139 
   140     fun prt_bundle (name, bundle) =
   140     fun prt_bundle (name, bundle) =
   141       Pretty.block (Pretty.command "bundle" :: Pretty.str " " :: Pretty.str name ::
   141       Pretty.block (Pretty.command "bundle" :: Pretty.str " " :: Pretty.mark_str name ::
   142         Pretty.breaks (Pretty.str " =" :: maps prt_fact bundle));
   142         Pretty.breaks (Pretty.str " =" :: maps prt_fact bundle));
   143   in
   143   in
   144     map prt_bundle (Name_Space.extern_table ctxt (get_bundles ctxt))
   144     map prt_bundle (Name_Space.extern_table ctxt (get_bundles ctxt))
   145   end |> Pretty.chunks |> Pretty.writeln;
   145   end |> Pretty.chunks |> Pretty.writeln;
   146 
   146