OpamFile.Switch_configtype t = {opam_version : OpamVersion.t;synopsis : string;repos : OpamTypes.repository_name list option;paths : (OpamTypes.std_path * string) list;variables : (OpamTypes.variable * OpamTypes.variable_contents) list;opam_root : OpamTypes.dirname option;wrappers : Wrappers.t;env : (OpamTypes.spf_resolved, OpamTypes.euok_writeable) OpamTypes.env_update
list;invariant : OpamFormula.t option;depext_bypass : OpamSysPkg.Set.t;}val env :
t ->
(OpamTypes.spf_resolved, [> OpamTypes.euok_writeable ]) OpamTypes.env_update
listval file_format_version : OpamVersion.tval variable : t -> OpamTypes.variable -> OpamTypes.variable_contents optionval path : t -> OpamTypes.std_path -> string optionval wrappers : t -> Wrappers.tval sections :
(string
* (t, (string option * OpamParserTypes.FullPos.opamfile_item list) list)
OpamPp.field_parser)
listval fields :
(string * (t, OpamParserTypes.FullPos.value) OpamPp.field_parser) listval to_list :
?filename:'a typed_file ->
t ->
(string * OpamParserTypes.FullPos.value) listinclude IO_FILE with type t := tval format_version : OpamVersion.tval empty : tEmpty file
val write : t typed_file -> t -> unitWrite some contents to a file
val read : t typed_file -> tRead file contents.
val read_opt : t typed_file -> t optionReturns None on non-existing file
val safe_read : t typed_file -> tRead file contents. Return empty if the file does not exist.
val read_from_channel : ?filename:t typed_file -> Stdlib.in_channel -> tval read_from_string : ?filename:t typed_file -> string -> tval write_to_channel :
?filename:t typed_file ->
Stdlib.out_channel ->
t ->
unitval write_to_string : ?filename:t typed_file -> t -> stringval oldest_compatible_format_version : OpamVersion.tmodule BestEffort : BestEffortRead with type t := t