package yaml

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

Install

Dune Dependency

Authors

Maintainers

Sources

yaml-3.2.0.tbz
sha256=c50d2aca28b9f966792b71e1603351e5d24eda4dfd3e4453fbd50366a3a08227
sha512=e87ae73f3e376800a09e4359d5c7090ef5107807f540b51fbdee9017bcbacb2414ec12255b37caead115ea1562303436cac2c91c60814c2ba44bdd3d677fc0d1

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.