Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val from_file : string -> t
Reads TOML from a file. May raise Parse_error
or Stdlib.Sys_error
.
val from_channel : in_channel -> t
Reads TOML from an input channel. May raise Parse_error
or Stdlib.Sys_error
.
val from_string : string -> t
Reads TOML from a string. May raise Parse_error
or Stdlib.Sys_error
.
Like from_file
, but handles both Parse_error
or Stdlib.Sys_error
exceptions and wraps the error message in Stdlib.result
.
val from_channel_result : in_channel -> (t, string) result
Converts the value attached to a Parse_error
exception to an error message string.