Module OpamFile.Pinned_legacySource
Pinned package files (only used for migration from 1.2, the inclusive State module is now used instead)
include OpamFile.IO_FILE
with type t = OpamFile.Pinned_legacy.pin_option OpamTypes.name_map
File contents
Empty file
Write some contents to a file
Read file contents.
Source
val read_opt :
OpamFile.Pinned_legacy.t OpamFile.typed_file ->
OpamFile.Pinned_legacy.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.Pinned_legacy.t OpamFile.typed_file ->
Stdlib.in_channel ->
OpamFile.Pinned_legacy.tSource
val read_from_string :
?filename:OpamFile.Pinned_legacy.t OpamFile.typed_file ->
string ->
OpamFile.Pinned_legacy.tSource
val write_to_channel :
?filename:OpamFile.Pinned_legacy.t OpamFile.typed_file ->
Stdlib.out_channel ->
OpamFile.Pinned_legacy.t ->
unitSource
val write_to_string :
?filename:OpamFile.Pinned_legacy.t OpamFile.typed_file ->
OpamFile.Pinned_legacy.t ->
string