package semver

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

Module SemverSource

Simple semantic versioning module

Sourcetype t = int * int * int

Semantic version consisting of major/minor/patch components

Sourcetype version_part = [
  1. | `Major
    (*

    First part of version

    *)
  2. | `Minor
    (*

    Second part of version

    *)
  3. | `Patch
    (*

    Third part of version

    *)
]

Part labels

Sourceval compare : t -> t -> int

Compare two versions

Sourceval equal : t -> t -> bool

Return whether two versions are equal

Sourceval succ : version_part -> t -> t

succ vpart v increments vpart component in v

Sourceval pred : version_part -> t -> t

pred vpart v decrements vpart component in v

Sourceval of_string : string -> t option

Parse a semantic version from a string

Sourceval to_string : t -> string

Convert a semantic version to a string

Sourcemodule Query : sig ... end
Sourceval query : Query.t -> t list -> t option
Sourceval query_str : string -> t list -> t option
OCaml

Innovation. Community. Security.