src/Pure/PIDE/yxml.ML
changeset 70993 2e610951f79a
parent 70991 f9f7c34b7dd4
child 70996 ebdfd6c43e56
equal deleted inserted replaced
70992:e7dfc505de1b 70993:2e610951f79a
    82 fun string_of_body body = Buffer.empty |> fold buffer body |> Buffer.content;
    82 fun string_of_body body = Buffer.empty |> fold buffer body |> Buffer.content;
    83 val string_of = string_of_body o single;
    83 val string_of = string_of_body o single;
    84 
    84 
    85 fun write_body path body =
    85 fun write_body path body =
    86   path |> File.open_output (fn file =>
    86   path |> File.open_output (fn file =>
    87     fold (traverse (fn s => fn () => BinIO.output (file, Byte.stringToBytes s))) body ());
    87     fold (traverse (fn s => fn () => File.output file s)) body ());
    88 
    88 
    89 
    89 
    90 (* markup elements *)
    90 (* markup elements *)
    91 
    91 
    92 val Z = chr 0;
    92 val Z = chr 0;