jon.recoil.org

Module OpamFile.Switch_configSource

Sourcetype t = {
  1. opam_version : OpamVersion.t;
  2. synopsis : string;
  3. repos : OpamTypes.repository_name list option;
  4. paths : (OpamTypes.std_path * string) list;
  5. variables : (OpamTypes.variable * OpamTypes.variable_contents) list;
  6. opam_root : OpamTypes.dirname option;
  7. wrappers : OpamFile.Wrappers.t;
  8. env : (OpamTypes.spf_resolved, OpamTypes.euok_writeable) OpamTypes.env_update list;
  9. invariant : OpamFormula.t option;
  10. depext_bypass : OpamSysPkg.Set.t;
}
Sourceval file_format_version : OpamVersion.t
Sourceval path : OpamFile.Switch_config.t -> OpamTypes.std_path -> string option
Sourceval sections : (string * (OpamFile.Switch_config.t, (string option * OpamParserTypes.FullPos.opamfile_item list) list) OpamPp.field_parser) list
include OpamFile.IO_FILE with type t := OpamFile.Switch_config.t
Sourceval format_version : OpamVersion.t

Empty file

Write some contents to a file

Read file contents.

Returns None on non-existing file

Read file contents. Return empty if the file does not exist.

Sourceval oldest_compatible_format_version : OpamVersion.t