-
Notifications
You must be signed in to change notification settings - Fork 181
instance Ord IntSet is broken since #670 #783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have to make a release anyway. We had some Ord IntMap issues; was IntSet
changed then too, and wrong? Or is it fixed in master?
…On Wed, Jun 23, 2021, 2:15 PM Bodigrim ***@***.***> wrote:
Upgrading GHC 8.10.4 -> 8.10.5 appears more challenging than expected.
This bug fix release actually bumps containers from 0.6.2.1 to 0.6.4.1,
which is a 2500-lines long patch, breaking instance Ord IntSet:
$ cabal repl --constraint 'containers == 0.6.2.1'
> Data.IntSet.fromList [255,256] > Data.IntSet.singleton 254
True
$ cabal repl --constraint 'containers == 0.6.4.1’
> Data.IntSet.fromList [255,256] > Data.IntSet.singleton 254
False
CC @wz1000 <https://github.com/wz1000>, because it would be nice to fix
this one way or another in GHC 8.10.6.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#783>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOOF7KSHKLOF7B34LS6UHLTUIQEBANCNFSM47GKJANA>
.
|
8.10.6 will indeed be blocked until this is fixed. |
Indeed it looks like the bug is a result of the
containers/containers/src/Data/IntMap/Internal.hs Lines 3308 to 3309 in 56331cd
How about we simply go back to the old comparison via (CC @jwaldmann) |
Are there any major bugs in |
Yes, let's.
…On Wed, Jun 23, 2021, 2:39 PM Simon Jakobi ***@***.***> wrote:
Indeed it looks like the bug is a result of the Ord IntSet changes in #670
<#670>.
Ord IntMap looks correct:
https://github.com/haskell/containers/blob/56331cdd270575baf9d86da873c72facbbe0956a/containers/src/Data/IntMap/Internal.hs#L3308-L3309
How about we simply go back to the old comparison via toList?
(CC @jwaldmann <https://github.com/jwaldmann>)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#783 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOOF7N3BO7XKUJMBTQWUITTUIS4LANCNFSM47GKJANA>
.
|
@wz1000 Unfortunately yes: https://hackage.haskell.org/package/containers-0.6.3.1/changelog |
@jwaldmann , do you think this is a really quick fix, or should I revert #670 to get this out the door? |
Any progress on this? 8.10.6 is getting really close and this is one of the remaining blockers. |
I will deal with it today.
…On Sun, Jun 27, 2021, 7:18 AM wz1000 ***@***.***> wrote:
Any progress on this? 8.10.6 is getting really close and this is one of
the remaining blockers.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#783 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOOF7ILB5MOHPEN65IUWNDTU4CJBANCNFSM47GKJANA>
.
|
Bodigrim found new `Ord` instance in haskell#783. Put the old one one back.
Bodigrim found new `Ord` instance in haskell#783. Put the old one one back. Fixes haskell#783.
Bodigrim found a bug in the new `Ord` instance in haskell#783. Put the old one one back. Fixes haskell#783.
yikes. No, I don't have a quick fix right now. Will try to look into this next week. |
Thanks. I reverted the instance change for now (leaving the rest of your commit alone). It would be nice to understand how this slipped through the testing cracks (i.e., what made it hard to test) and plug that gap. |
Upgrading GHC 8.10.4 -> 8.10.5 appears more challenging than expected. This bug fix release actually bumps
containers
from 0.6.2.1 to 0.6.4.1, which is a 2500-lines long patch, breakinginstance Ord IntSet
:CC @wz1000, because it would be nice to fix this one way or another in GHC 8.10.6.
The text was updated successfully, but these errors were encountered: