OpamFile.URLinclude IO_FILEval 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 create :
?mirrors:OpamTypes.url list ->
?checksum:OpamHash.t list ->
?swhid:OpamSWHID.t ->
?subpath:OpamTypes.subpath ->
OpamTypes.url ->
tval url : t -> OpamTypes.urlURL address
val mirrors : t -> OpamTypes.url listval checksum : t -> OpamHash.t listArchive checksum
val swhid : t -> OpamSWHID.t optionval with_url : OpamTypes.url -> t -> tConstructor
val with_checksum : OpamHash.t list -> t -> tval with_swhid : OpamSWHID.t -> t -> tval with_swhid_opt : OpamSWHID.t option -> t -> tval with_subpath : OpamTypes.subpath -> t -> tval with_subpath_opt : OpamTypes.subpath option -> t -> tval subpath : t -> OpamTypes.subpath option