OpamFile.SwitchExportAn extended version of SwitchSelections that can include full opam files as package "name" {} sections, for storing overlays
type t = {selections : OpamTypes.switch_selections;extra_files : string OpamHash.Map.t;overlays : OPAM.t OpamPackage.Name.Map.t;}include 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 -> string