package yaml

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

Install

Dune Dependency

Authors

Maintainers

Sources

yaml-v2.1.0.tbz
sha256=05153817981ea97b62d8c49eeb42ba2e7efba82e61a3834b65213e59a0dee80d
sha512=339dc197615c8894d7e1031f425d328e6e81f6466688d30db1db21038cd49b33491980b49dccf3eb508bc6a90047296f801f3e03b9a521c00b0919c6a44c09e3

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.