Update changelog
[pkg-ocaml-js-of-ocaml.git] / compiler / util.mli
blob9d32ec7f29ca2b36dc4f2083ca1ed417b1a69e7f
1 (* Js_of_ocaml compiler
2 * http://www.ocsigen.org/js_of_ocaml/
3 * Copyright (C) 2010 Jérôme Vouillon
4 * Laboratoire PPS - CNRS Université Paris Diderot
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, with linking exception;
9 * either version 2.1 of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 module IntSet : Set.S with type elt = int
22 module IntMap : Map.S with type key = int
24 module StringSet : Set.S with type elt = string
26 val opt_filter : ('a -> bool) -> 'a option -> 'a option
27 val opt_map : ('a -> 'b) -> 'a option -> 'b option
28 val opt_iter : ('a -> unit) -> 'a option -> unit
30 val find_in_paths : string list -> string -> string
31 val read_file : string -> string
33 val debug : string -> unit -> bool
34 val set_debug : string -> unit
36 val disabled : string -> unit -> bool
37 val set_disabled : string -> unit