package yaml

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

Install

Dune Dependency

Authors

Maintainers

Sources

yaml-v2.0.1.tbz
sha256=a04f4d89783dbe24577d69b96bbb1d674f98a490bdf248bf782610284e9112e5
sha512=addf40e38600e3855597d774763e012a6bde4aea5267801ba04941a0ca1488214812bb21db16c808b5781fb30b92d2e7c5ada7924ad4d254b6aa2d3e8899fb8b

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.