package opam-lib

  1. Overview
  2. Docs

doc/opam-lib.format/OpamCompiler/Version/index.html

Module OpamCompiler.Version

OCaml compiler versions

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

Compiler constraint

val compare : t -> t -> int

Compare OCaml versions

val eval_relop : OpamFormula.relop -> t -> t -> bool

Evaluate a relational operator between OCaml versions

OCaml

Innovation. Community. Security.