package yaml

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

Install

Dune Dependency

Authors

Maintainers

Sources

yaml-3.0.1.tbz
sha256=92ed1ba429559a14b6b45e170f3482191791f99ac5189a5f20612e15bfbdf695
sha512=b5cd1724aefd049230c4c5e71ad047688c8f747d133572879f08c83bc6d1a29e5bae750115c232ecf58ee9ddee32ca9ac4471f40ff65cf81b785b03941401aca

doc/yaml.unix/Yaml_unix/index.html

Module Yaml_unix

UNIX interface functions for handling Yaml

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.

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.

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.

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.

OCaml

Innovation. Community. Security.