src/Pure/General/pretty.ML
changeset 82316 83584916b6d7
parent 81718 289ded3c342f
child 82583 abd3885a3fcf
equal deleted inserted replaced
82315:6c68eff8355a 82316:83584916b6d7
    87   val output: output_ops -> T -> Bytes.T
    87   val output: output_ops -> T -> Bytes.T
    88   val string_of_ops: output_ops -> T -> string
    88   val string_of_ops: output_ops -> T -> string
    89   val string_of: T -> string
    89   val string_of: T -> string
    90   val pure_string_of: T -> string
    90   val pure_string_of: T -> string
    91   val writeln: T -> unit
    91   val writeln: T -> unit
       
    92   val writeln_urgent: T -> unit
    92   val markup_chunks: Markup.T -> T list -> T
    93   val markup_chunks: Markup.T -> T list -> T
    93   val chunks: T list -> T
    94   val chunks: T list -> T
    94   val chunks2: T list -> T
    95   val chunks2: T list -> T
    95   val block_enclose: T * T -> T list -> T
    96   val block_enclose: T * T -> T list -> T
    96   val writeln_chunks: T list -> unit
    97   val writeln_chunks: T list -> unit
   526 fun string_of_ops ops = Bytes.content o output ops;
   527 fun string_of_ops ops = Bytes.content o output ops;
   527 fun string_of prt = string_of_ops (output_ops NONE) prt;
   528 fun string_of prt = string_of_ops (output_ops NONE) prt;
   528 
   529 
   529 val pure_string_of = string_of_ops (pure_output_ops NONE);
   530 val pure_string_of = string_of_ops (pure_output_ops NONE);
   530 
   531 
   531 fun writeln prt =
   532 fun gen_writeln urgent prt =
   532   Output.writelns (Bytes.contents (output (output_ops NONE) prt));
   533   (if urgent then Output.writelns_urgent else Output.writelns)
       
   534     (Bytes.contents (output (output_ops NONE) prt));
       
   535 
       
   536 val writeln = gen_writeln false;
       
   537 val writeln_urgent = gen_writeln true;
   533 
   538 
   534 
   539 
   535 (* chunks *)
   540 (* chunks *)
   536 
   541 
   537 fun markup_chunks m prts = markup m (fbreaks (map (text_fold o single) prts));
   542 fun markup_chunks m prts = markup m (fbreaks (map (text_fold o single) prts));