haskell-unordered-containers / unordered-containers

Efficient hashing-based container types
BSD 3-Clause "New" or "Revised" License
222 stars 97 forks source link

Add a disclaimer to `HashSet.toList` that order is unspecified #481

Open andreasabel opened 11 months ago

andreasabel commented 11 months ago

The warning given for HashMap.toList is missing here: https://github.com/haskell-unordered-containers/unordered-containers/blob/259dc9e4191d988a7f84c3d417764a32e7c8e29f/Data/HashSet/Internal.hs#L441-L444 Note that the order of elements depends on which version of hashable this package is built against, even which minor version (which I find dubious):