Version #
This module contains useful definitions for manipulating versions.
It also defines a v!"<ver>"
syntax for version literals.
Equations
- Lake.instInhabitedSemVerCore = { default := { major := default, minor := default, patch := default } }
Equations
- Lake.instReprSemVerCore = { reprPrec := Lake.reprSemVerCore✝ }
Equations
- Lake.instOrdSemVerCore = { compare := Lake.ordSemVerCore✝ }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.instToStringSemVerCore = { toString := Lake.SemVerCore.toString }
Equations
- Lake.instToJsonSemVerCore = { toJson := fun (x : Lake.SemVerCore) => Lean.Json.str x.toString }
Equations
- Lake.instFromJsonSemVerCore = { fromJson? := fun (x : Lean.Json) => do let __do_lift ← Lean.fromJson? x Lake.SemVerCore.parse __do_lift }
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lake.instInhabitedStdVer = { default := { toSemVerCore := default, specialDescr := default } }
Equations
- Lake.instReprStdVer = { reprPrec := Lake.reprStdVer✝ }
@[reducible, inline]
A Lean version.
Equations
Instances For
Equations
@[inline]
Equations
- Lake.StdVer.ofSemVerCore ver = { toSemVerCore := ver, specialDescr := "" }
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.instOrdStdVer = { compare := Lake.StdVer.compare }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.instToStringStdVer = { toString := Lake.StdVer.toString }
Equations
- Lake.instToJsonStdVer = { toJson := fun (x : Lake.StdVer) => Lean.Json.str x.toString }
Equations
- Lake.instFromJsonStdVer = { fromJson? := fun (x : Lean.Json) => do let __do_lift ← Lean.fromJson? x Lake.StdVer.parse __do_lift }
Equations
- One or more equations did not get rendered due to their size.
Version Literals #
Defines the v!"<ver>"
syntax for version literals.
The elaborator attempts to synthesize an instance of ToVersion
for the
expected type and then applies it to the string literal.
Equations
- Lake.instDecodeVersionSemVerCore = { decodeVersion := Lake.SemVerCore.parse }
@[defaultInstance 1000]
Equations
- Lake.instDecodeVersionStdVer = { decodeVersion := Lake.StdVer.parse }
A Lake version literal.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.