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 -> 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 failwith : ('a, unit, string, 'b) Stdlib.format4 -> 'a
val key2str : string list -> string
val iter : (string -> 'a -> unit) -> 'a 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 expecting_type : string -> string list -> 'a
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 -> 'a) -> 'a TYPES.encoding
val put_encoding : 'a TYPES.encoding -> string list -> 'a -> 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 -> 'a 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 -> 'a
val get_encoding_default : 'a TYPES.encoding -> TYPES.value Drom_lib.Toml.Types.Table.t -> string list -> 'a -> 'a
val get_encoding_option : ?default:'a -> 'a 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 -> 'a) -> 'a 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 = {
  1. option_name : string;
  2. option_value : Drom_lib.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.