OpamFile.Compiler_index

# Module OpamFile.Compiler_index

    module Compiler_index: IO_FILE  with
      type t = (repository_name * string option) compiler_map

Association between compiler names and repositories

    type t

File contents

    val empty : t

Empty file

    val write : OpamTypes.filename -> t -> unit

Write some contents to a file

    val read : OpamTypes.filename -> t

Read file contents. Raise an error if the file does not exist.

    val safe_read : OpamTypes.filename -> t

Read file contents. Return `empty` if the file does not exist.

    val read_from_channel : Pervasives.in_channel -> t

Read from channel.

    val write_to_channel : Pervasives.out_channel -> t -> unit

Write to channel.