feat: add Hashable instances for PUnit and PEmpty (#6866)

This PR adds missing `Hashable` instances for `PUnit` and `PEmpty`.
This commit is contained in:
Jakob von Raumer 2025-02-04 15:40:31 +01:00 committed by GitHub
parent 23bd9dfb09
commit 6d63f6305e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,6 +22,12 @@ instance : Hashable Bool where
| true => 11
| false => 13
instance : Hashable PEmpty.{u} where
hash x := nomatch x
instance : Hashable PUnit.{u} where
hash | .unit => 11
instance [Hashable α] : Hashable (Option α) where
hash
| none => 11