Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Default TOML implementation.
Raised when a TOML document cannot be parsed due to syntax or semantic errors.
type t =
| TomlString of string
| TomlInteger of int
| TomlFloat of float
| TomlBoolean of bool
| TomlOffsetDateTime of string
| TomlLocalDateTime of string
| TomlLocalDate of string
| TomlLocalTime of string
| TomlArray of t list
| TomlTable of (string * t) list
| TomlInlineTable of (string * t) list
| TomlTableArray of t list
module Printer : sig ... end
module Parser : sig ... end
Constructors
val string : string -> t
val integer : int -> t
val float : float -> t
val boolean : bool -> t
val offset_datetime : string -> t
val local_datetime : string -> t
val local_date : string -> t
val local_time : string -> t
Accessors
In non-strict mode, forces a value x
to a single-item array [x]
val get_string : ?strict:bool -> t -> string
val get_integer : ?strict:bool -> t -> int
val get_float : ?strict:bool -> t -> float
val get_boolean : ?strict:bool -> t -> bool
High-level interface
val list_table_keys : t -> string list
val path_exists : t -> string list -> bool
module Base : sig ... end