Documentation

Lake.Util.Version

Version #

This module contains useful definitions for manipulating versions.

Parser Utils #

SemVerCore #

The major-minor-patch triple of a SemVer.

Instances For
    @[instance_reducible]
    def Lake.instDecidableEqSemVerCore.decEq (x✝ x✝¹ : SemVerCore) :
    Decidable (x✝ = x✝¹)
    Instances For
      @[instance_reducible]
      @[instance_reducible]
      @[instance_reducible]
      @[instance_reducible]
      @[instance_reducible]

      StdVer #

      structure Lake.StdVerextends Lake.SemVerCore :

      A Lean-style semantic version. A major-minor-patch triple with an optional arbitrary - suffix.

      Instances For
        @[instance_reducible]
        @[instance_reducible]
        @[instance_reducible]
        def Lake.instDecidableEqStdVer.decEq (x✝ x✝¹ : StdVer) :
        Decidable (x✝ = x✝¹)
        Instances For
          @[reducible, inline]

          A Lean version.

          Instances For
            @[inline]
            Instances For
              Instances For
                @[instance_reducible]
                @[instance_reducible]
                @[instance_reducible]
                @[instance_reducible]
                @[instance_reducible]
                Instances For
                  @[instance_reducible]
                  @[instance_reducible]
                  @[instance_reducible]

                  ToolchainVer #

                  The elan toolchain file name (i.e., lean-toolchain).

                  Instances For
                    @[implemented_by Lake.ToolchainVer.toString._override]
                    Instances For

                      A Lean toolchain version.

                      Instances For
                        @[instance_reducible]
                        Instances For

                          Parse a toolchain from a lean-toolchain file.

                          Instances For
                            @[inline]

                            Parse a toolchain from the lean-toolchain file of the directory dir.

                            Instances For
                              @[instance_reducible]
                              @[instance_reducible]
                              @[instance_reducible]
                              @[instance_reducible]

                              Converts a toolchain version to its normal form (e.g., with an origin).

                              Instances For

                                DecodeVersion #

                                class Lake.DecodeVersion (α : Type u) :

                                Parses a version from a string.

                                Instances
                                  @[instance_reducible, defaultInstance 1000]

                                  VerRange #

                                  @[instance_reducible]
                                  • ver : StdVer

                                    For internal use only.

                                  • For internal use only.

                                  • includeSuffixes : Bool

                                    For internal use only.

                                  Instances For
                                    @[instance_reducible]

                                    A version comparator that matches any non-suffixed version (i.e., *, ≥0.0.0).

                                    Instances For
                                      Instances For
                                        structure Lake.VerRange :
                                        Instances For
                                          @[instance_reducible]
                                          @[instance_reducible]
                                          @[instance_reducible]
                                          @[inline]
                                          Instances For
                                            def Lake.VerRange.test (self : VerRange) (ver : StdVer) :
                                            Instances For