V1.EZTOMLmodule TYPES : sig ... endval make_empty : unit -> TYPES.toml_fileCreates a new handle with an empty TOML table.
val toml : TYPES.toml_file -> TOML.Types.nodeAccess to the underlying TOML node.
Please handle with care: any mutation of the returned node leads to undefined behaviors (mutations of this node should only happen via update hooks).
val checksum : TYPES.toml_file -> stringval section :
name:string ->
?comments:string list ->
'value TYPES.section_option list ->
'value TYPES.sectionCombinator to define sections.
val option :
?comments:string list ->
getter:('value -> TOML.Types.value) ->
setter:('value -> TOML.Types.node -> unit) ->
string ->
'value TYPES.section_optionCombinator to define section options.
val add_section : TYPES.toml_file -> 'value -> 'value TYPES.section -> unitadd_section_update handle section_name create_section equips handle with an update hook that calls create_section ~name upon each call to save, to determine whether the TOML representation needs to be updated.
val load : ?verbose:bool -> string -> TYPES.toml_fileload ~verbose filename load and returns a handle for the TOML file filename. Returns an empty TOML if filename does not exist. Raises Sys_error if the file exists but is not readable.
val save : ?verbose:bool -> string -> TYPES.toml_file -> unitsave ~verbose filename handle triggers update hooks (that update the TOML representation), and save it in filename if the representation has been modified.
val option_string :
?comments:string list ->
string ->
getter:('a -> string) ->
setter:('a -> string -> unit) ->
'a TYPES.section_optionval option_string_option :
?comments:string list ->
string ->
getter:('a -> string option) ->
setter:('a -> string option -> unit) ->
'a TYPES.section_optionval option_string_map :
?comments:string list ->
string ->
getter:('a -> string EzCompat.StringMap.t) ->
setter:('a -> string EzCompat.StringMap.t -> unit) ->
'a TYPES.section_optionval option_int :
?comments:string list ->
string ->
getter:('a -> int) ->
setter:('a -> int -> unit) ->
'a TYPES.section_optionval option_bool :
?comments:string list ->
string ->
getter:('a -> bool) ->
setter:('a -> bool -> unit) ->
'a TYPES.section_option