package yaml

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

Install

Dune Dependency

Authors

Maintainers

Sources

yaml-v3.0.0.tbz
sha256=4c48e27092d5c95cb49898ca637be92d2a70f1769fd1532b84a5e56c17359ac7
sha512=abf7d8c3e4e5f30f19f76b52e8c5b7593c8dca42050bc2d780cbc6e7e7cc49b40b6f27d8b884ce2b39ce0d63d5da715b86692ebe2792ecd1b455128c294a518d

doc/yaml.unix/Yaml_unix/index.html

Module Yaml_unixSource

UNIX interface functions for handling Yaml

Sourceval of_file : Fpath.t -> (Yaml.value, Rresult.R.msg) Result.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, Rresult.R.msg) Result.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.