Module Types.Value

Valued (typed) options.

class 'a v : 'a configurable -> config:'b -> 'a -> object ... end

Internal representation of typed option binding.

class 'a value : kind:'a kind -> name:string -> ?short:doc option -> doc -> object ... end

Type of valued options

type 'a t = 'a value
val def : name:string -> kind:'a kind -> ?short:doc -> doc -> 'a value

Definitions

val kind_from_fmt : name:string -> ('a, Stdlib.Scanf.Scanning.in_channel, 'b, ('c -> 'c) -> 'd, 'a -> 'e, 'e) Stdlib.format6 -> 'd kind
val int : name:string -> ?short:doc -> doc -> int value
val bool : name:string -> ?short:doc -> doc -> bool value