This PR changes the structure instance notation pretty printer so that fields are omitted if their value is definitionally equal to the default value for the field (up to reducible transparancy). Setting `pp.structureInstances.defaults` to true forces such fields to be pretty printed anyway. Closes #1100
9 lines
210 B
Text
9 lines
210 B
Text
structure MyStruct where
|
||
{α : Type u}
|
||
{β : Type v}
|
||
a : α
|
||
b : β
|
||
|
||
/-- info: { α := Nat, β := Bool, a := 10, b := true } : MyStruct -/
|
||
#guard_msgs in
|
||
#check { a := 10, b := true : MyStruct }
|