Drom_lib.EzToml
module TYPES : sig ... end
module EZ : sig ... end
include module type of struct include EZ end
val key : string -> Drom_toml.Types.Table.Key.t
val empty : 'a Drom_lib.Toml.Types.Table.t
val find :
Drom_lib.Toml.Types.Table.key ->
'a Drom_lib.Toml.Types.Table.t ->
'a
val to_string : Drom_toml.Types.table -> string
val from_file : string -> Drom_lib.Toml.Parser.result
val from_string : string -> Drom_lib.Toml.Parser.result
val map :
('a -> 'b) ->
'a Drom_lib.Toml.Types.Table.t ->
'b Drom_lib.Toml.Types.Table.t
val string_of_location : Drom_lib.Toml.Parser.location -> string
val from_file_exn : string -> Drom_toml.Types.table
val from_string_exn : string -> Drom_toml.Types.table
val iter : (string -> 'a -> unit) -> 'b Drom_lib.Toml.Types.Table.t -> unit
val get : TYPES.value Drom_lib.Toml.Types.Table.t -> string list -> TYPES.value
val get_string :
TYPES.value Drom_lib.Toml.Types.Table.t ->
string list ->
string
val get_string_default :
TYPES.value Drom_lib.Toml.Types.Table.t ->
string list ->
string ->
string
val get_string_option :
?default:string ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
string list ->
string option
val get_bool : TYPES.value Drom_lib.Toml.Types.Table.t -> string list -> bool
val get_bool_option :
?default:bool ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
string list ->
bool option
val get_bool_default :
TYPES.value Drom_lib.Toml.Types.Table.t ->
string list ->
bool ->
bool
val get_int : TYPES.value Drom_lib.Toml.Types.Table.t -> string list -> int
val get_int_default :
TYPES.value Drom_lib.Toml.Types.Table.t ->
string list ->
int ->
int
val put :
string list ->
TYPES.value ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
TYPES.value Drom_lib.Toml.Types.Table.t
val put_string :
string list ->
string ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
TYPES.value Drom_lib.Toml.Types.Table.t
val put_bool :
string list ->
bool ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
TYPES.value Drom_lib.Toml.Types.Table.t
val put_bool_option :
string list ->
bool option ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
TYPES.value Drom_lib.Toml.Types.Table.t
val put_option :
string list ->
bool option ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
TYPES.value Drom_lib.Toml.Types.Table.t
val put_string_option :
string list ->
string option ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
TYPES.value Drom_lib.Toml.Types.Table.t
val encoding :
to_toml:('a -> TYPES.value) ->
of_toml:(key:string list -> TYPES.value -> 'b) ->
'a TYPES.encoding
val put_encoding :
'a TYPES.encoding ->
string list ->
'b ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
TYPES.value Drom_lib.Toml.Types.Table.t
val put_encoding_option :
'a TYPES.encoding ->
string list ->
'b option ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
TYPES.value Drom_lib.Toml.Types.Table.t
val get_encoding :
'a TYPES.encoding ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
string list ->
'b
val get_encoding_default :
'a TYPES.encoding ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
string list ->
'b ->
'c
val get_encoding_option :
?default:'a ->
'b TYPES.encoding ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
string list ->
'a option
val get_string_list_option :
?default:string list ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
string list ->
string list option
val get_string_list_default :
TYPES.value Drom_lib.Toml.Types.Table.t ->
string list ->
string list ->
string list
val put_string_list_option :
string list ->
string list option ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
TYPES.value Drom_lib.Toml.Types.Table.t
val put_string_list :
string list ->
string list ->
TYPES.value Drom_lib.Toml.Types.Table.t ->
TYPES.value Drom_lib.Toml.Types.Table.t
val expect_table : key:string list -> name:string -> TYPES.value -> TYPES.table
val expect_string : key:string list -> TYPES.value -> string
val expect_string_list : key:string list -> TYPES.value -> string list
val expect_bool : key:string list -> TYPES.value -> bool
val enum_encoding :
to_string:('a -> string) ->
of_string:(key:string list -> string -> 'b) ->
'c TYPES.encoding
val string_encoding : string TYPES.encoding
val union : TYPES.value TYPES.Table.t -> TYPES.table -> TYPES.table
module ENCODING : sig ... end
type file_option = {
option_name : string;
option_value : Drom_lib.Toml.Types.value option;
option_comment : string list option;
option_default : string option;
}
val new_file : unit -> file
val add : file -> file_option list -> unit
val string_of_file : file -> string
module CONST : sig ... end