Given
```lean
structure A where
x : Nat
structure B extends A where
y : Nat
```
rather than pretty printing `{ x := 1, y := 2 : B }` as `{ toA := { x :=
1 }, y := 2 }`, it now pretty prints as `{ x := 1, y := 2 }`.
The option `pp.structureInstances.flatten` controls whether to flatten
structure instances like this.
4 lines
145 B
Text
4 lines
145 B
Text
{ x := 0, y := 1, z := 2 } : B
|
|
{ x := 0, y := 1, z := 2 } : D
|
|
@[reducible] def D.toC_1 : D → Boo.C :=
|
|
fun self => { x := self.x, z := self.z }
|