Equations
Instances For
@[implicit_reducible]
Equations
Equations
- One or more equations did not get rendered due to their size.
- System.instReprExitCode.repr System.ExitCode.success prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "System.ExitCode.success")).group prec✝
Instances For
@[implicit_reducible]
Equations
- System.instReprExitCode = { reprPrec := System.instReprExitCode.repr }
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
@[inline]
Convert an ExitCode to its numeric representation.
$$\text{toUInt32}(\text{success}) = 0, \quad \text{toUInt32}(\text{failure}(n)) = n$$
Equations
Instances For
@[inline]
Test if the exit code represents success.
$$\text{isSuccess}(\text{success}) = \text{true}$$
Equations
Instances For
Exit the process with the given exit code.
$$\text{exitWith} : \text{ExitCode} \to \text{IO}\ \alpha$$
Note: Lean's IO.Process.exit takes UInt8, so codes above 255
are truncated.
Equations
Instances For
Exit successfully (code 0).
$$\text{exitSuccess} : \text{IO}\ \alpha$$
Instances For
Exit with failure code 1.
$$\text{exitFailure} : \text{IO}\ \alpha$$