package opam-core

  1. Overview
  2. Docs

doc/opam-core/OpamVersion/index.html

Module OpamVersionSource

(generated) Current OPAM version

include OpamStd.ABSTRACT
Sourcetype t
Sourceval equal : t -> t -> bool
Sourceval of_string : string -> t
Sourceval to_string : t -> string
Sourcemodule Set : OpamStd.SET with type elt = t
Sourcemodule Map : OpamStd.MAP with type key = t
Sourceval current : t

The current OPAM version

Sourceval major : t -> t

Extracts the major version

Sourceval nopatch : t -> t

Major+minor version, strips the patch version

Sourceval current_nopatch : t

The current OPAM version, truncated (only MAJOR.MINOR)

Sourceval git : unit -> t option

The 'git' version of OPAM

Sourceval set_git : string -> unit

Side-effect to set the git version later in the build

Sourceval is_dev_version : unit -> bool

true if this is a development version of opam

Sourceval full : unit -> t

The full version (current + git)

Sourceval magic : unit -> string

Magic string, always of length 8

Sourceval message : unit -> unit

Display the version message

Sourceval compare : t -> t -> int

Version comparison

OCaml

Innovation. Community. Security.