package opam-format

  1. Overview
  2. Docs

Cached environment updates (<switch>/environment)

include IO_FILE with type t = (OpamTypes.spf_resolved, OpamTypes.euok_writeable) OpamTypes.env_update list
val format_version : OpamVersion.t
val empty : t

Empty file

val write : t typed_file -> t -> unit

Write some contents to a file

val write_to_channel : ?filename:t typed_file -> out_channel -> t -> unit
val write_to_string : ?filename:t typed_file -> t -> string
val read_from_channel : ?filename:t typed_file -> in_channel -> (OpamTypes.spf_resolved, [> OpamTypes.euok_writeable ]) OpamTypes.env_update list
val read_from_string : ?filename:t typed_file -> string -> (OpamTypes.spf_resolved, [> OpamTypes.euok_writeable ]) OpamTypes.env_update list
OCaml

Innovation. Community. Security.