package toml

  1. Overview
  2. Docs
exception Bad_type of string

Bad_type exceptions carry expected type data

From Toml type to OCaml primitive. All conversion functions in this module (and its Array submodule) may throw Bad_type if the Toml type is incorrect (eg, using Toml.Value.To.string on a Toml boolean).

val bool : value -> bool
val int : value -> int
val float : value -> float
val string : value -> string
val date : value -> Unix.tm
val array : value -> array
val table : value -> table
module Array : sig ... end