package drom_lib

  1. Overview
  2. Docs
module TYPES : sig ... end
module EZ : sig ... end
include module type of struct include EZ end
val key : string -> Toml.Types.Table.Key.t
val empty : 'a Toml.Types.Table.t
val to_string : Toml.Types.table -> string
val from_file : string -> Toml.Parser.result
val from_string : string -> Toml.Parser.result
val string_of_location : Toml.Parser.location -> string
val from_file_exn : string -> Toml.Types.table
val from_string_exn : string -> Toml.Types.table
val failwith : ('a, unit, string, 'b) format4 -> 'c
val key2str : string list -> string
val iter : (string -> 'a -> unit) -> 'b Toml.Types.Table.t -> unit
val get : TYPES.value Toml.Types.Table.t -> string list -> TYPES.value
val get_string : TYPES.value Toml.Types.Table.t -> string list -> string
val get_string_default : TYPES.value Toml.Types.Table.t -> string list -> string -> string
val get_string_option : ?default:string -> TYPES.value Toml.Types.Table.t -> string list -> string option
val get_bool : TYPES.value Toml.Types.Table.t -> string list -> bool
val expecting_type : string -> string list -> 'a
val get_bool_option : ?default:bool -> TYPES.value Toml.Types.Table.t -> string list -> bool option
val get_bool_default : TYPES.value Toml.Types.Table.t -> string list -> bool -> bool
val get_int : TYPES.value Toml.Types.Table.t -> string list -> int
val get_int_default : TYPES.value Toml.Types.Table.t -> string list -> int -> int
val put_string : string list -> string -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
val put_bool : string list -> bool -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
val put_bool_option : string list -> bool option -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
val put_option : string list -> bool option -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
val put_string_option : string list -> string option -> TYPES.value Toml.Types.Table.t -> TYPES.value 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 Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
val put_encoding_option : 'a TYPES.encoding -> string list -> 'b option -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
val get_encoding : 'a TYPES.encoding -> TYPES.value Toml.Types.Table.t -> string list -> 'b
val get_encoding_default : 'a TYPES.encoding -> TYPES.value Toml.Types.Table.t -> string list -> 'b -> 'c
val get_encoding_option : ?default:'a -> 'b TYPES.encoding -> TYPES.value Toml.Types.Table.t -> string list -> 'a option
val get_string_list_option : ?default:string list -> TYPES.value Toml.Types.Table.t -> string list -> string list option
val get_string_list_default : TYPES.value Toml.Types.Table.t -> string list -> string list -> string list
val put_string_list_option : string list -> string list option -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
val put_string_list : string list -> string list -> TYPES.value Toml.Types.Table.t -> TYPES.value 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
module ENCODING : sig ... end
type file_option = {
  1. option_name : string;
  2. option_value : Toml.Types.value option;
  3. option_comment : string list option;
  4. option_default : string option;
}
type file = {
  1. mutable options : file_option list;
}
val new_file : unit -> file
val add : file -> file_option list -> unit
val string_of_file : file -> string
module CONST : sig ... end
OCaml

Innovation. Community. Security.