package drom_lib

  1. Overview
  2. Docs

Module Drom_lib.EzTomlSource

Sourcemodule TYPES : sig ... end
Sourcemodule EZ : sig ... end
include module type of struct include EZ end
Sourceval key : string -> Toml.Types.Table.Key.t
Sourceval to_string : Toml.Types.table -> string
Sourceval from_file : string -> Toml.Parser.result
Sourceval from_string : string -> Toml.Parser.result
Sourceval string_of_location : Toml.Parser.location -> string
Sourceval from_file_exn : string -> Toml.Types.table
Sourceval from_string_exn : string -> Toml.Types.table
Sourceval failwith : ('a, unit, string, 'b) format4 -> 'a
Sourceval key2str : string list -> string
Sourceval iter : (string -> 'a -> unit) -> 'a Toml.Types.Table.t -> unit
Sourceval get_string : TYPES.value Toml.Types.Table.t -> string list -> string
Sourceval get_string_default : TYPES.value Toml.Types.Table.t -> string list -> string -> string
Sourceval get_string_option : ?default:string -> TYPES.value Toml.Types.Table.t -> string list -> string option
Sourceval get_bool : TYPES.value Toml.Types.Table.t -> string list -> bool
Sourceval expecting_type : string -> string list -> 'a
Sourceval get_bool_option : ?default:bool -> TYPES.value Toml.Types.Table.t -> string list -> bool option
Sourceval get_bool_default : TYPES.value Toml.Types.Table.t -> string list -> bool -> bool
Sourceval get_int : TYPES.value Toml.Types.Table.t -> string list -> int
Sourceval get_int_default : TYPES.value Toml.Types.Table.t -> string list -> int -> int
Sourceval put_string : string list -> string -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
Sourceval put_bool : string list -> bool -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
Sourceval put_bool_option : string list -> bool option -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
Sourceval put_option : string list -> bool option -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
Sourceval put_string_option : string list -> string option -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
Sourceval encoding : to_toml:('a -> TYPES.value) -> of_toml:(key:string list -> TYPES.value -> 'a) -> 'a TYPES.encoding
Sourceval put_encoding : 'a TYPES.encoding -> string list -> 'a -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
Sourceval put_encoding_option : 'a TYPES.encoding -> string list -> 'a option -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
Sourceval get_encoding : 'a TYPES.encoding -> TYPES.value Toml.Types.Table.t -> string list -> 'a
Sourceval get_encoding_default : 'a TYPES.encoding -> TYPES.value Toml.Types.Table.t -> string list -> 'a -> 'a
Sourceval get_encoding_option : ?default:'a -> 'a TYPES.encoding -> TYPES.value Toml.Types.Table.t -> string list -> 'a option
Sourceval get_string_list_option : ?default:string list -> TYPES.value Toml.Types.Table.t -> string list -> string list option
Sourceval get_string_list_default : TYPES.value Toml.Types.Table.t -> string list -> string list -> string list
Sourceval put_string_list_option : string list -> string list option -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
Sourceval put_string_list : string list -> string list -> TYPES.value Toml.Types.Table.t -> TYPES.value Toml.Types.Table.t
Sourceval expect_table : key:string list -> name:string -> TYPES.value -> TYPES.table
Sourceval expect_string : key:string list -> TYPES.value -> string
Sourceval expect_string_list : key:string list -> TYPES.value -> string list
Sourceval expect_bool : key:string list -> TYPES.value -> bool
Sourceval enum_encoding : to_string:('a -> string) -> of_string:(key:string list -> string -> 'a) -> 'a TYPES.encoding
Sourceval string_encoding : string TYPES.encoding
Sourcemodule ENCODING : sig ... end
Sourcetype file_option = {
  1. option_name : string;
  2. option_value : Toml.Types.value option;
  3. option_comment : string list option;
  4. option_default : string option;
}
Sourcetype file = {
  1. mutable options : file_option list;
}
Sourceval new_file : unit -> file
Sourceval add : file -> file_option list -> unit
Sourceval string_of_file : file -> string
Sourcemodule CONST : sig ... end
OCaml

Innovation. Community. Security.