Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val unwind_protect : (unit -> 'a) -> (Exception.t -> unit) -> 'a
val pp_filename :
Ppx_deriving_runtime.Format.formatter ->
filename ->
Ppx_deriving_runtime.unit
val show_filename : filename -> Ppx_deriving_runtime.string
val is_directory : filename -> bool
val files_of_dir_or_files_no_vcs_nofilter : string list -> filename list
val cat : filename -> string list
val write_file : file:filename -> string -> unit
val read_file : ?max_len:int -> filename -> string
val with_open_outfile :
filename ->
(((string -> unit) * Stdlib.out_channel) -> 'a) ->
'a
val with_open_infile : filename -> (Stdlib.in_channel -> 'a) -> 'a
val new_temp_file : string -> string -> filename
val erase_this_temp_file : filename -> unit
Same as List.map
but stack-safe and slightly faster on short lists. Additionally, we guarantee that the mapping function is applied from left to right like for List.iter
.
val sort_by_val_lowfirst : ('a, 'b) assoc -> ('a * 'b) list
val sort_by_val_highfirst : ('a, 'b) assoc -> ('a * 'b) list
val sort_by_key_lowfirst : ('a, 'b) assoc -> ('a * 'b) list
val sort_by_key_highfirst : ('a, 'b) assoc -> ('a * 'b) list
val push : 'a -> 'a stack Stdlib.ref -> unit
val hashset_of_list : 'a list -> 'a hashset
val hashset_to_list : 'a hashset -> 'a list
val pp_either :
(Ppx_deriving_runtime.Format.formatter -> 'a -> Ppx_deriving_runtime.unit) ->
(Ppx_deriving_runtime.Format.formatter -> 'b -> Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
('a, 'b) either ->
Ppx_deriving_runtime.unit
val show_either :
(Ppx_deriving_runtime.Format.formatter -> 'a -> Ppx_deriving_runtime.unit) ->
(Ppx_deriving_runtime.Format.formatter -> 'b -> Ppx_deriving_runtime.unit) ->
('a, 'b) either ->
Ppx_deriving_runtime.string
val partition_either : ('a -> ('b, 'c) either) -> 'a list -> 'b list * 'c list
val pp_either3 :
(Ppx_deriving_runtime.Format.formatter -> 'a -> Ppx_deriving_runtime.unit) ->
(Ppx_deriving_runtime.Format.formatter -> 'b -> Ppx_deriving_runtime.unit) ->
(Ppx_deriving_runtime.Format.formatter -> 'c -> Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
('a, 'b, 'c) either3 ->
Ppx_deriving_runtime.unit
val show_either3 :
(Ppx_deriving_runtime.Format.formatter -> 'a -> Ppx_deriving_runtime.unit) ->
(Ppx_deriving_runtime.Format.formatter -> 'b -> Ppx_deriving_runtime.unit) ->
(Ppx_deriving_runtime.Format.formatter -> 'c -> Ppx_deriving_runtime.unit) ->
('a, 'b, 'c) either3 ->
Ppx_deriving_runtime.string
val partition_either3 :
('a -> ('b, 'c, 'd) either3) ->
'a list ->
'b list * 'c list * 'd list
val cache_computation :
?use_cache:bool ->
filename ->
string ->
(unit -> 'a) ->
'a