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

Cleanup GHC macros (because min version is 8.8.4) #3281

Merged
merged 7 commits into from
Oct 11, 2022

Conversation

andys8
Copy link
Collaborator

@andys8 andys8 commented Oct 11, 2022

With #3101 the minimum supported GHC version is 8.8.4. This allows us to drop (or modify all conditional pragmas) targetting lower ghc versions or remove them since we already know GHC is min 8.8.4.

Changes

I grepped through the codebase with "#if.*MIN_VERSION_ghc\(8,8" and "__GLASGOW_HASKELL__.*808" and code that can now be removed.

Review

@andys8 andys8 force-pushed the remove-865-macros branch 2 times, most recently from 7501e5d to 8d6ffce Compare October 11, 2022 12:01
@andys8 andys8 changed the base branch from drop-8.6.5 to master October 11, 2022 12:53
@andys8 andys8 force-pushed the remove-865-macros branch from 8d6ffce to 2255740 Compare October 11, 2022 12:53
@michaelpj
Copy link
Collaborator

We're going to drop 8.8 also, do you want to wait for that before tidying up? I guess this is good regardless!

Copy link
Collaborator

@michaelpj michaelpj left a comment

Choose a reason for hiding this comment

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

beautiful!

ghcide/src/Development/IDE/GHC/Compat/Core.hs Outdated Show resolved Hide resolved
ghcide/src/Development/IDE/GHC/Compat/Core.hs Outdated Show resolved Hide resolved
ghcide/src/Development/IDE/GHC/Compat/Core.hs Outdated Show resolved Hide resolved
@July541
Copy link
Collaborator

July541 commented Oct 11, 2022

Should we drop related hie-compat also?

@andys8
Copy link
Collaborator Author

andys8 commented Oct 11, 2022

We're going to drop 8.8 also, do you want to wait for that before tidying up? I guess this is good regardless!

Yeah, I was asking about dropping 8.8 support but since 8.6 and 8.8 are split in several PRs, I would also split tidying up the macros. First getting rid of 8.6, then getting rid of 8.8.

@andys8 andys8 force-pushed the remove-865-macros branch from 422a5f7 to 9f29d85 Compare October 11, 2022 15:28
@andys8
Copy link
Collaborator Author

andys8 commented Oct 11, 2022

Should we drop related hie-compat also?

Thanks for pointing this out. Done with 9f29d85.

@michaelpj michaelpj enabled auto-merge (squash) October 11, 2022 18:18
@michaelpj michaelpj merged commit 86e3fd6 into haskell:master Oct 11, 2022
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.

4 participants