blob: fe3cd7909a9ce56f48c0c5a2c02a82b2264e892a [file] [edit]
import Lean
set_option linter.suspiciousUnexpanderPatterns true
@[app_unexpander List.nil] def unexpandListNilBad : Lean.PrettyPrinter.Unexpander
| `(List.nil) => `([])
| _ => throw ()
/--hey-/
@[app_unexpander List.cons] private def unexpandListConsBad : Lean.PrettyPrinter.Unexpander
| `(List.cons $x []) => `([$x])
| _ => throw ()