equal
deleted
inserted
replaced
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; |