Two equal queues may compare as unequal, since duplicate keys are allowed and the Eq implementation takes only care of comparing the keys in order.
Example:
ghci> import qualified Data.PQueue.Min as PMin
ghci> PMin.fromAscList [(1, 'a'), (1, 'b')] == PMin.fromAscList [(1, 'b'), (1, 'a')]
False
This should be documented, as I don't think this can be fixed without making the implementation significantly slower.
Two equal queues may compare as unequal, since duplicate keys are allowed and the
Eqimplementation takes only care of comparing the keys in order.Example:
This should be documented, as I don't think this can be fixed without making the implementation significantly slower.