We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17127e0 commit 0e241ccCopy full SHA for 0e241cc
Data/HashMap/Base.hs
@@ -403,11 +403,9 @@ instance Ord k => Ord1 (HashMap k) where
403
liftCompare = cmp compare
404
#endif
405
406
--- | The order is total.
407
---
408
--- /Note:/ Because the hash is not guaranteed to be stable across library
409
--- versions, OSes, or architectures, neither is an actual order of elements in
410
--- 'HashMap' or an result of `compare`.is stable.
+-- | The ordering is total and consistent with the `Eq` instance. However,
+-- nothing else about the ordering is specified, and it may change from
+-- version to version of either this package or of hashable.
411
instance (Ord k, Ord v) => Ord (HashMap k v) where
412
compare = cmp compare compare
413
0 commit comments