package opam-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Compiler names and versions

module Version : sig ... end

OCaml compiler versions

Compiler names

include OpamStd.ABSTRACT
type t
val of_string : string -> t
val to_string : t -> string
val to_json : t -> OpamJson.t
module Set : OpamStd.SET with type elt = t
module Map : OpamStd.MAP with type key = t
val version : t -> Version.t

Return the compiler version

val of_filename : OpamFilename.t -> t option

Convert a filename into a compiler name. This function extract name from /path/to/$name.comp.

List the compiler available in the global state.

val prefixes : OpamFilename.Dir.t -> string option Map.t

List the compiler available in a directory (and their prefix)

val system : t

System compiler