package conex

  1. Overview
  2. Docs

Module Conex_opam_encodingSource

Opam file encoding

Persistent files of the opam repository should be kept in the same file format as opam files. This module uses the opam-file-format package to decode and encode the Wire.t representation into opam files.

Sourceval decode : string -> (Conex_resource.Wire.t, string) result

decode str is either Ok t or Error str, the input is a string in opam format.

Sourceval encode : Conex_resource.Wire.t -> string

encode t encodes t into a string in opam format.

OCaml

Innovation. Community. Security.