Skip to content
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

Drop support for GHC 9.0 #3875

Merged
merged 13 commits into from
Nov 20, 2023
Merged

Drop support for GHC 9.0 #3875

merged 13 commits into from
Nov 20, 2023

Conversation

michaelpj
Copy link
Collaborator

Fixes #3872.

I removed the macros automatically, so let's see if this builds!

@@ -1219,12 +1215,7 @@ uses_th_qq (ms_hspp_opts -> dflags) =
-- Depends on whether it uses unboxed tuples or sums
computeLinkableTypeForDynFlags :: DynFlags -> LinkableType
computeLinkableTypeForDynFlags d
#if defined(GHC_PATCHED_UNBOXED_BYTECODE) || MIN_VERSION_ghc(9,2,0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this flag from the cabal file?

Copy link
Collaborator

@fendor fendor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, once CI is green, this looks ready to go to me.

Comment on lines 662 to 664
tcSplitForAllTyVars :: Type -> ([TyVar], Type)
tcSplitForAllTyVars =
#if MIN_VERSION_ghc(9,2,0)
TcType.tcSplitForAllTyVars
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we perhaps delete this simple function definition?

Its initial purpose is gone.
This raises the question again, whether we can carve out an GHC API out of our usage...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I didn't go through doing simplification, which I should...

@michaelpj
Copy link
Collaborator Author

Okay, tests hopefully fixed and I did a bit of simplification in ghcide.

@michaelpj michaelpj merged commit c3fcc3e into master Nov 20, 2023
38 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop support for GHC 9.0 early
3 participants