Module OpamFile.PkgListSource
A simple list of packages and versions: (used for the older $opam/$switch/{installed,installed_roots}, still needed to migrate from 1.2 repository, and for reinstall)
File contents
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.
Source
val read_from_channel :
?filename:OpamFile.PkgList.t OpamFile.typed_file ->
Stdlib.in_channel ->
OpamFile.PkgList.tSource
val read_from_string :
?filename:OpamFile.PkgList.t OpamFile.typed_file ->
string ->
OpamFile.PkgList.tSource
val write_to_channel :
?filename:OpamFile.PkgList.t OpamFile.typed_file ->
Stdlib.out_channel ->
OpamFile.PkgList.t ->
unitSource
val write_to_string :
?filename:OpamFile.PkgList.t OpamFile.typed_file ->
OpamFile.PkgList.t ->
string