package ocaml-version

  1. Overview
  2. Docs

Test whether a release has a given feature.

val bytes : t -> bool

bytes t will return true if that release has a bytes type. Note that opam provides a bytes compatibility package for older releases.

val arch : arch -> t -> bool

arch a t will return true if architecture a is supported on release t.

val options_packages : t -> bool

options_packages t will return true if the release t uses ocaml-option-* packages in opam-repository, rather than +variant packages

val multicore : t -> bool

multicore t will return true if the release t has a multicore OCaml fork available for it. This requires the https://github.com/ocaml-multicore/multicore-opam opam switch to be added before the package is available.

Note that the multicore variants changed between 4.10 and 4.12, and this function returns true for any of them.

OCaml

Innovation. Community. Security.