package ocamlformat-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of Misc
val fatal_error : string -> 'a
val fatal_errorf : ('a, Stdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'a
exception Fatal_error
val try_finally : ?always:(unit -> unit) -> ?exceptionally:(unit -> unit) -> (unit -> 'a) -> 'a
val reraise_preserving_backtrace : exn -> (unit -> unit) -> 'a
val map_end : ('a -> 'b) -> 'a list -> 'b list -> 'b list
val map_left_right : ('a -> 'b) -> 'a list -> 'b list
val for_all2 : ('a -> 'b -> bool) -> 'a list -> 'b list -> bool
val replicate_list : 'a -> int -> 'a list
val list_remove : 'a -> 'a list -> 'a list
val split_last : 'a list -> 'a list * 'a
val create_hashtable : int -> ('a * 'b) list -> ('a, 'b) Stdlib.Hashtbl.t
module Stdlib : sig ... end
val find_in_path : string list -> string -> string
val find_in_path_rel : string list -> string -> string
val find_in_path_uncap : string list -> string -> string
val remove_file : string -> unit
val expand_directory : string -> string -> string
val split_path_contents : ?sep:char -> string -> string list
val copy_file : Stdlib.in_channel -> Stdlib.out_channel -> unit
val copy_file_chunk : Stdlib.in_channel -> Stdlib.out_channel -> int -> unit
val string_of_file : Stdlib.in_channel -> string
val output_to_file_via_temporary : ?mode:Stdlib.open_flag list -> string -> (string -> Stdlib.out_channel -> 'a) -> 'a
val protect_writing_to_file : filename:string -> f:(Stdlib.out_channel -> 'a) -> 'a
val concat_null_terminated : string list -> string
val split_null_terminated : string -> string list
val chop_extensions : string -> string
val log2 : int -> int
val align : int -> int -> int
val no_overflow_add : int -> int -> bool
val no_overflow_sub : int -> int -> bool
val no_overflow_mul : int -> int -> bool
val no_overflow_lsl : int -> int -> bool
module Int_literal_converter : sig ... end
val find_first_mono : (int -> bool) -> int
val search_substring : string -> string -> int -> int
val replace_substring : before:string -> after:string -> string -> string
val rev_split_words : string -> string list
val cut_at : string -> char -> string * string
val ordinal_suffix : int -> string
val normalise_eol : string -> string
val delete_eol_spaces : string -> string
type ref_and_value =
  1. | R : 'a Stdlib.ref * 'a -> ref_and_value
val protect_refs : ref_and_value list -> (unit -> 'a) -> 'a
val get_ref : 'a list Stdlib.ref -> 'a list
val set_or_ignore : ('a -> 'b option) -> 'b option Stdlib.ref -> 'a -> unit
val fst3 : ('a * 'b * 'c) -> 'a
val snd3 : ('a * 'b * 'c) -> 'b
val thd3 : ('a * 'b * 'c) -> 'c
val fst4 : ('a * 'b * 'c * 'd) -> 'a
val snd4 : ('a * 'b * 'c * 'd) -> 'b
val thd4 : ('a * 'b * 'c * 'd) -> 'c
val for4 : ('a * 'b * 'c * 'd) -> 'd
module LongString : sig ... end
val edit_distance : string -> string -> int -> int option
val spellcheck : string list -> string -> string list
val did_you_mean : Stdlib.Format.formatter -> (unit -> string list) -> unit
val print_if : Stdlib.Format.formatter -> bool Stdlib.ref -> (Stdlib.Format.formatter -> 'a -> unit) -> 'a -> 'a
val pp_two_columns : ?sep:string -> ?max_lines:int -> Stdlib.Format.formatter -> (string * string) list -> unit
val print_see_manual : Stdlib.Format.formatter -> int list -> unit
val show_config_and_exit : unit -> unit
val show_config_variable_and_exit : string -> unit
val get_build_path_prefix_map : unit -> Build_path_prefix_map.map option
val debug_prefix_map_flags : unit -> string list
module Magic_number : sig ... end
type filepath = string
type modname = string
type crcs = (modname * Stdlib.Digest.t option) list
type alerts = string Stdlib.String.Map.t
module Color : sig ... end
module Error_style : sig ... end
module Style : sig ... end
OCaml

Innovation. Community. Security.