2 ||M|| This file is part of HELM, an Hypertextual, Electronic
3 ||A|| Library of Mathematics, developed at the Computer Science
4 ||T|| Department, University of Bologna, Italy.
6 ||T|| HELM is free software; you can redistribute it and/or
7 ||A|| modify it under the terms of the GNU General Public License
8 \ / version 2 or (at your option) any later version.
9 \ / This software is distributed as is, NO WARRANTY.
10 V_______________________________________________________________ *)
15 type out_channel = Pervasives.out_channel * F.formatter
17 (* internal functions *******************************************************)
23 (* interface functions ******************************************************)
26 let _ = Sys.command (Printf.sprintf "mkdir -p %s" hal_dir) in
27 let och = open_out (Filename.concat hal_dir (name ^ hal_ext)) in
28 let frm = F.formatter_of_out_channel och in
29 F.pp_set_margin frm max_int;
32 let write_entity f (_, frm) entity =
33 O.pp_entity f frm entity
35 let close_out f (och, _) =