equal
deleted
inserted
replaced
377 [Pretty.str (ext_const c), Pretty.str " ::", Pretty.brk 1, Pretty.quote (prt_typ T)]; |
377 [Pretty.str (ext_const c), Pretty.str " ::", Pretty.brk 1, Pretty.quote (prt_typ T)]; |
378 |
378 |
379 fun pretty_record (name, {args, parent, fields, simps = _}) = Pretty.block (Pretty.fbreaks |
379 fun pretty_record (name, {args, parent, fields, simps = _}) = Pretty.block (Pretty.fbreaks |
380 (Pretty.block [prt_typ (Type (name, map TFree args)), Pretty.str " = "] :: |
380 (Pretty.block [prt_typ (Type (name, map TFree args)), Pretty.str " = "] :: |
381 pretty_parent parent @ map pretty_field fields)); |
381 pretty_parent parent @ map pretty_field fields)); |
382 in seq (Pretty.writeln o pretty_record) (Sign.cond_extern_table sg Sign.typeK recs) end; |
382 in |
|
383 map pretty_record (Sign.cond_extern_table sg Sign.typeK recs) |
|
384 |> Pretty.chunks |> Pretty.writeln |
|
385 end; |
383 end; |
386 end; |
384 |
387 |
385 structure RecordsData = TheoryDataFun(RecordsArgs); |
388 structure RecordsData = TheoryDataFun(RecordsArgs); |
386 val print_records = RecordsData.print; |
389 val print_records = RecordsData.print; |
387 |
390 |