package climate

  1. Overview
  2. Docs

Stripped down versions of some functions from the parent module for use in reentrant completion functions. None of the documentation arguments are present as there is no access to documentation for the parsers for these functions. Parsers that would fail when passed multiple times no longer fail under this condition, since any errors encountered during autocompletion will be ignored, and it's more useful to have these functions do something rather than nothing.

val unit : unit t
val map : 'a t -> f:('a -> 'b) -> 'b t
val both : 'a t -> 'b t -> ('a * 'b) t
val (>>|) : 'a t -> ('a -> 'b) -> 'b t
val let+ : 'a t -> ('a -> 'b) -> 'b t
val and+ : 'a t -> 'b t -> ('a * 'b) t
val named_multi : string list -> 'a conv -> 'a list t
val named_opt : string list -> 'a conv -> 'a option t
val named_with_default : string list -> 'a conv -> default:'a -> 'a t
val flag_count : string list -> int t
val flag : string list -> bool t
val pos_opt : int -> 'a conv -> 'a option t
val pos_all : 'a conv -> 'a list t
val pos_left : int -> 'a conv -> 'a list t
val pos_right : int -> 'a conv -> 'a list t
OCaml

Innovation. Community. Security.