package ocamlformat

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | V0_10_0
  2. | V0_12_0
  3. | V0_14_2
  4. | V0_16_0
  5. | V0_17_0
  6. | V0_20_0
  7. | V1_0_0
val to_string : t -> Ocamlformat_stdlib.string
val pp : Ocamlformat_stdlib.Format.formatter -> t -> Ocamlformat_stdlib.unit

A version number, or "unknown". This is provided by dune-build-info, which means that it will be resolved in the following way:

  • if (version) is set in (dune-project), it is used. This is what happens when using opam pins (through dune subst), or for released versions (through dune-release).
  • otherwise, a description from git describe will be used. Caveat for this case: binaries under _build/ will not have this information, but dune install --prefix _install will copy a valid binary under _install/bin.
OCaml

Innovation. Community. Security.