jaspervdj / psqueues

Priority Search Queues in three different flavors for Haskell
https://hackage.haskell.org/package/psqueues
Other
64 stars 24 forks source link

minor simplification: replace `binShrinkL` and `binShrinkR` with `bin` #52

Closed mitchellwrosen closed 10 months ago

mitchellwrosen commented 10 months ago

Hi!

I noticed binShrinkL and binShrinkR are the same function; this PR renames it to bin, and deletes the duplicate.

mitchellwrosen commented 10 months ago

No problem! By the way, I noticed base has a copy of this data structure, to which the same patch could apply: https://hackage.haskell.org/package/base-4.18.1.0/docs/src/GHC.Event.PSQ.html

Do you know how that relationship is managed? Is someone perhaps watching both repos and porting fixes and improvements to both places?