-
Notifications
You must be signed in to change notification settings - Fork 7
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
Support ghc-9.10 #18
Closed
Closed
Support ghc-9.10 #18
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ tested-with: | |
|| ==9.4.8 | ||
|| ==9.6.5 | ||
|| ==9.8.2 | ||
|| ==9.10.1 | ||
|
||
library | ||
default-language: Haskell2010 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ tested-with: | |
|| ==9.4.8 | ||
|| ==9.6.5 | ||
|| ==9.8.2 | ||
|| ==9.10.1 | ||
|
||
library | ||
default-language: Haskell2010 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,7 @@ tested-with: | |
|| ==9.4.8 | ||
|| ==9.6.5 | ||
|| ==9.8.2 | ||
|| ==9.10.1 | ||
|
||
library | ||
default-language: Haskell2010 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@infinity0 Is this the best way to do this? I looked around at the scripts but could not find a better way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is not the best way. The best way is to
strict-containers/regen.sh
to the versions that support GHC 9.10, and then re-run it. ideally this Just Works and there's nothing else to do.strict-containers/patches/
, and retry (2)strict-containers/update-patches-from-git.sh
can help automate part of this process, but you should understand exactly what it's doing as it may mess up your git repo if run incorrectlyI just checked however, and:
containers
(0.7) andunordered-containers
(0.2.20) don't yet support GHC 9.10, they don'timport hiding foldl'
.containers
master branch does support GHC 9.10, howeverunordered-containers
doesn't.vector
to release, so we can do Drop Vector patches #16, which presumably will also include GHC 9.10 support.I suggest you wait until all these libraries have released versions that support GHC 9.10 before proceeding with this PR. At the very least, your patch here should be applied to the
unordered-containers
git repo before we proceed with changes in this library.After that (i.e. contributing to
unordered-containers
, so that all 3 upstream git repos have master branches that support GHC 9.10), you could optionally experiment with changing the versions inregen.sh
tomaster
, but this may result in duplicate unnecessary work if the upstream libraries make further changes that invalidate our new adjusted patches. So that's why I suggest to wait until all libraries have released (tagged) versions that support GHC 9.10.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, i will not merge this PR as is, I will try the above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both packages do support GHC 9.10.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Bodigrim I checked the source code and they don't
hiding foldl'
like this PR was proposing, how could they support GHC 9.10 without that?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@infinity0 I'm not sure what you are looking at. I just checked, say, https://hackage.haskell.org/package/containers-0.7/docs/src/Data.IntMap.Strict.Internal.html - it does hide
foldl'
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right I was too hasty with a text search, used a regex that only looked on one line.
And unordered-containers has haskell-unordered-containers/unordered-containers@259dc9e which achieves the same without mentioning
foldl'
at all.Ok in that case all that's needed is to wait for
vector
to release, the latest version 0.13.1.0 doesn't hidefoldl'
but its master branch does.Then, some of the patches will have to be updated too.
vector @ 0.13.1.0 already invalidates the existing patches
containers @ master (> 0.7) invalidates the existing patches
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hackage has a version that could be used, but the scripts rely on the version in git and the version is git is on
v0.6.8
.I have raised an issue: haskell/containers#1012
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also haskell/vector#496