Module OpamFile.Switch_configSource
Source
type 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 : OpamFile.Wrappers.t;env : (OpamTypes.spf_resolved, OpamTypes.euok_writeable) OpamTypes.env_update list;invariant : OpamFormula.t option;depext_bypass : OpamSysPkg.Set.t;
}Source
val env :
OpamFile.Switch_config.t ->
(OpamTypes.spf_resolved, [> OpamTypes.euok_writeable ]) OpamTypes.env_update
listSource
val variable :
OpamFile.Switch_config.t ->
OpamTypes.variable ->
OpamTypes.variable_contents optionSource
val sections :
(string
* (OpamFile.Switch_config.t,
(string option * OpamParserTypes.FullPos.opamfile_item list) list)
OpamPp.field_parser)
listSource
val fields :
(string
* (OpamFile.Switch_config.t, OpamParserTypes.FullPos.value)
OpamPp.field_parser)
listSource
val to_list :
?filename:'a OpamFile.typed_file ->
OpamFile.Switch_config.t ->
(string * OpamParserTypes.FullPos.value) listinclude OpamFile.IO_FILE with type t := OpamFile.Switch_config.t
Empty file
Write some contents to a file
Read file contents.
Source
val read_opt :
OpamFile.Switch_config.t OpamFile.typed_file ->
OpamFile.Switch_config.t optionReturns None on non-existing file
Read file contents. Return empty if the file does not exist.
Source
val read_from_channel :
?filename:OpamFile.Switch_config.t OpamFile.typed_file ->
Stdlib.in_channel ->
OpamFile.Switch_config.tSource
val read_from_string :
?filename:OpamFile.Switch_config.t OpamFile.typed_file ->
string ->
OpamFile.Switch_config.tSource
val write_to_channel :
?filename:OpamFile.Switch_config.t OpamFile.typed_file ->
Stdlib.out_channel ->
OpamFile.Switch_config.t ->
unitSource
val write_to_string :
?filename:OpamFile.Switch_config.t OpamFile.typed_file ->
OpamFile.Switch_config.t ->
string