Date #
A year-mont-day date. Used by Lake's TOML parser and its toolchain version parser (for nightlies).
Equations
- Lake.instOrdDate = { compare := Lake.ordDate✝ }
Equations
- Lake.instReprDate = { reprPrec := Lake.reprDate✝ }
@[reducible, inline]
Equations
- Lake.Date.IsValidDay y m d = (d ≥ 1 ∧ d ≤ Lake.Date.maxDay y m)
Instances For
Equations
- Lake.Date.ofValid? year month day = do guard (Lake.Date.IsValidMonth month ∧ Lake.Date.IsValidDay year month day) pure { year := year, month := month, day := day }