package yaml

  1. Overview
  2. Docs
Parse and generate YAML 1.1/1.2 files

Install

Dune Dependency

Authors

Maintainers

Sources

yaml-3.1.0.tbz
sha256=d0a9e0ae2184a69e6d7202bfe3707d10439d31a71241860234b19f020452ecc7
sha512=69d0ff09abeac475981deefc5a2a09e8707aebe4c7e606671a5a8ffa7055d3519ee9e4823065d89c8c5eedb355015b8d9410286fac721af53d910d924a0711a3

doc/yaml.unix/Yaml_unix/index.html

Module Yaml_unixSource

UNIX interface functions for handling Yaml

Sourceval 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.

Sourceval 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.

Sourceval 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.

Sourceval 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.

OCaml

Innovation. Community. Security.