feat: add Hashable instances for PUnit and PEmpty (#6866)
This PR adds missing `Hashable` instances for `PUnit` and `PEmpty`.
This commit is contained in:
parent
23bd9dfb09
commit
6d63f6305e
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue