@[instance 100]
Equations
- instToFormatOfToString = { format := Std.Format.text ∘ toString }
Equations
- [].format = Std.Format.text "[]"
- x✝.format = (Std.Format.joinSep x✝ (Std.Format.text "," ++ Std.Format.line)).sbracket
Instances For
Equations
- instToFormatList = { format := List.format }
Equations
- instToFormatArray = { format := fun (a : Array α) => Std.Format.text "#" ++ Std.format a.toList }
Equations
- none.format = Std.Format.text "none"
- (some a).format = Std.Format.text "some " ++ Std.format a
Instances For
Equations
- instToFormatOption = { format := Option.format }
instance
instToFormatProd
{α : Type u}
{β : Type v}
[Std.ToFormat α]
[Std.ToFormat β]
:
Std.ToFormat (α × β)
Equations
- instToFormatProd = { format := fun (x : α × β) => match x with | (a, b) => (Std.format a ++ Std.Format.text "," ++ Std.Format.line ++ Std.format b).paren }
Equations
- s.toFormat = Std.Format.joinSep (s.splitOn "\n") Std.Format.line
Instances For
Equations
- instToFormatPos = { format := fun (p : String.Pos) => Std.format p.byteIdx }