Debian Codegraph @

vendor/opam/src/core/opamCompat.mli

raw
1 (**************************************************************************)
2 (* *)
3 (* Copyright 2018-2020 OCamlPro *)
4 (* *)
5 (* All rights reserved. This file is distributed under the terms of the *)
6 (* GNU Lesser General Public License version 2.1, with the special *)
7 (* exception on linking described in the file LICENSE. *)
8 (* *)
9 (**************************************************************************)
10
11 module String : sig
12 (* NOTE: OCaml >= 4.13 *)
13 val exists: (char -> bool) -> string -> bool
14 end
15
16 module Either : sig
17 (* NOTE: OCaml >= 4.12 *)
18 type ('a, 'b) t =
19 | Left of 'a
20 | Right of 'b
21 end
22
23 module Lazy : sig
24 (* NOTE: OCaml >= 4.13 *)
25 val map : ('a -> 'b) -> 'a Lazy.t -> 'b Lazy.t
26 end
27
28 module Unix : sig
29 (* `realpath` for OCaml >= 4.13.0,
30 implementation with double chdir otherwise *)
31 val realpath: string -> string
32 end
33
34 module Filename: sig
35 (** NOTE: OCaml >= 4.10 *)
36
37 val quote_command :
38 string -> ?stdin:string -> ?stdout:string -> ?stderr:string
39 -> string list -> string
40 end