File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ instance Ord k => Ord1 (HashMap k) where
464464
465465-- | The ordering is total and consistent with the `Eq` instance. However,
466466-- nothing else about the ordering is specified, and it may change from
467- -- version to version of either this package or of hashable.
467+ -- version to version of either this package or of @ hashable@ .
468468instance (Ord k , Ord v ) => Ord (HashMap k v ) where
469469 compare = cmp compare compare
470470
@@ -2224,7 +2224,8 @@ elems = List.map snd . toList
22242224-- ** Lists
22252225
22262226-- | \(O(n)\) Return a list of this map's elements. The list is
2227- -- produced lazily. The order of its elements is unspecified.
2227+ -- produced lazily. The order of its elements is unspecified, and it may
2228+ -- change from version to version of either this package or of @hashable@.
22282229toList :: HashMap k v -> [(k , v )]
22292230toList t = Exts. build (\ c z -> foldrWithKey (curry c) z t)
22302231{-# INLINE toList #-}
Original file line number Diff line number Diff line change @@ -439,7 +439,8 @@ filter p = HashSet . H.filterWithKey q . asMap
439439{-# INLINE filter #-}
440440
441441-- | \(O(n)\) Return a list of this set's elements. The list is
442- -- produced lazily.
442+ -- produced lazily. The order of its elements is unspecified, and it may
443+ -- change from version to version of either this package or of @hashable@.
443444toList :: HashSet a -> [a ]
444445toList t = Exts. build (\ c z -> foldrWithKey (const . c) z (asMap t))
445446{-# INLINE toList #-}
You can’t perform that action at this time.
0 commit comments