diff --git a/src/Init/Data/Hashable.lean b/src/Init/Data/Hashable.lean index e871dcb40a..f661c8737a 100644 --- a/src/Init/Data/Hashable.lean +++ b/src/Init/Data/Hashable.lean @@ -30,6 +30,9 @@ instance [Hashable α] : Hashable (Option α) where instance [Hashable α] : Hashable (List α) where hash as := as.foldl (fun r a => mixHash r (hash a)) 7 +instance [Hashable α] : Hashable (Array α) where + hash as := as.foldl (fun r a => mixHash r (hash a)) 7 + instance : Hashable UInt8 where hash n := n.toUInt64