package opam-file-format

  1. Overview
  2. Docs

items str orig_its its converts its to string, while attempting to preserve the layout and comments of the original str for unmodified elements. The function assumes that str parses to the items orig_its.

opamfile f converts f to string, respecting the layout and comments in the corresponding on-disk file for unmodified items. format_from can be specified instead of using the filename specified in f.

OCaml

Innovation. Community. Security.