yaml.unix
Yaml_unix
UNIX interface functions for handling Yaml
yaml
yaml.bindings
yaml.c
yaml.ffi
yaml.types
yaml_bindings_types
val of_file : Fpath.t -> (Yaml.value, [ `Msg of string ]) result
of_file p will read the whole of the file at path p and convert it in a Yaml.value.
of_file p
p
Yaml.value
val of_file_exn : Fpath.t -> Yaml.value
of_file_exn p acts as of_file, but errors are thrown as a Failure exception instead of in the return value.
of_file_exn p
of_file
Failure
val to_file : Fpath.t -> Yaml.value -> (unit, [ `Msg of string ]) result
to_file p v will convert the Yaml value v to a string and write it to the file at path p.
to_file p v
v
val to_file_exn : Fpath.t -> Yaml.value -> unit
to_file_exn p acts as to_file, but errors are thrown as a Failure exception instead of in the return value.
to_file_exn p
to_file