Equations
- [].format = Std.Format.text "[]"
- x.format = (Lean.Format.joinSep x (Std.Format.text "," ++ Lean.Format.line)).sbracket
Instances For
Equations
- instToFormatList = { format := List.format }
Equations
- instToFormatOption = { format := Option.format }
instance
instToFormatProd
{α : Type u}
{β : Type v}
[Lean.ToFormat α]
[Lean.ToFormat β]
:
Lean.ToFormat (α × β)
Equations
- instToFormatProd = { format := fun (x : α × β) => match x with | (a, b) => (Lean.format a ++ Std.Format.text "," ++ Lean.Format.line ++ Lean.format b).paren }
Equations
- instToFormatPos = { format := fun (p : String.Pos) => Lean.format p.byteIdx }