jon.recoil.org

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

Sourceval format_version : OpamVersion.t

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.

Sourceval read_from_string : ?filename:OpamFile.PkgList.t OpamFile.typed_file -> string -> OpamFile.PkgList.t
Sourceval write_to_string : ?filename:OpamFile.PkgList.t OpamFile.typed_file -> OpamFile.PkgList.t -> string