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 @@ -466,7 +466,7 @@ instance Ord k => Ord1 (HashMap k) where
466
466
467
467
-- | The ordering is total and consistent with the `Eq` instance. However,
468
468
-- nothing else about the ordering is specified, and it may change from
469
- -- version to version of either this package or of hashable.
469
+ -- version to version of either this package or of @ hashable@ .
470
470
instance (Ord k , Ord v ) => Ord (HashMap k v ) where
471
471
compare = cmp compare compare
472
472
@@ -2228,7 +2228,8 @@ elems = List.map snd . toList
2228
2228
-- ** Lists
2229
2229
2230
2230
-- | \(O(n)\) Return a list of this map's elements. The list is
2231
- -- produced lazily. The order of its elements is unspecified.
2231
+ -- produced lazily. The order of its elements is unspecified, and it may
2232
+ -- change from version to version of either this package or of @hashable@.
2232
2233
toList :: HashMap k v -> [(k , v )]
2233
2234
toList t = Exts. build (\ c z -> foldrWithKey (curry c) z t)
2234
2235
{-# INLINE toList #-}
Original file line number Diff line number Diff line change @@ -439,7 +439,8 @@ filter p = HashSet . H.filterWithKey q . asMap
439
439
{-# INLINE filter #-}
440
440
441
441
-- | \(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@.
443
444
toList :: HashSet a -> [a ]
444
445
toList t = Exts. build (\ c z -> foldrWithKey (const . c) z (asMap t))
445
446
{-# INLINE toList #-}
You can’t perform that action at this time.
0 commit comments