Skip to content

Drop support for anything below GHC 8.0.0, base 4.9.0.0, Cabal 2.0.0.0#11630

Open
zlonast wants to merge 1 commit intohaskell:masterfrom
zlonast:zlonast/old-mkVersion
Open

Drop support for anything below GHC 8.0.0, base 4.9.0.0, Cabal 2.0.0.0#11630
zlonast wants to merge 1 commit intohaskell:masterfrom
zlonast:zlonast/old-mkVersion

Conversation

@zlonast
Copy link
Copy Markdown
Collaborator

@zlonast zlonast commented Mar 17, 2026

We don't have any testing for such old versions of ghc. Since this code isn't used, I assume it doesn't work, but it's difficult to confirm otherwise.

We just dropped everything below (ghc 8.0.0, base 4.9.0.0, cabal 2.0.0.0)

Template Α: This PR modifies behaviour or interface

Include the following checklist in your PR:

@zlonast
Copy link
Copy Markdown
Collaborator Author

zlonast commented Mar 17, 2026

Should we drop compilers below 8.6? Or 8.8?

@zlonast zlonast force-pushed the zlonast/old-mkVersion branch 3 times, most recently from 1cd54e4 to 27e6671 Compare March 17, 2026 19:15
@ffaf1
Copy link
Copy Markdown
Collaborator

ffaf1 commented Mar 17, 2026

This does modify behaviour, does it not?

@zlonast zlonast force-pushed the zlonast/old-mkVersion branch 2 times, most recently from 9f262e4 to 2547133 Compare March 17, 2026 20:17
@zlonast
Copy link
Copy Markdown
Collaborator Author

zlonast commented Mar 18, 2026

@ffaf1 It seems to me that if I can't compile the code with an old compiler, then this doesn't count as a change in behavior.

@ffaf1
Copy link
Copy Markdown
Collaborator

ffaf1 commented Mar 18, 2026

@ffaf1 It seems to me that if I can't compile the code with an old compiler, then this doesn't count as a change in behavior.

Makes sense!

@zlonast zlonast mentioned this pull request Mar 21, 2026
6 tasks
@zlonast zlonast requested review from ffaf1 and ulysses4ever March 21, 2026 19:33
@zlonast zlonast force-pushed the zlonast/old-mkVersion branch from 314c399 to ca8e7bb Compare March 23, 2026 15:10
@zlonast zlonast changed the title Remove old mkVersion We just dropped everything below (ghc 8.0.0, base 4.9.0.0, cabal 2.0.0.0) Mar 23, 2026
@zlonast zlonast force-pushed the zlonast/old-mkVersion branch from 9e5e88e to f0bc384 Compare March 24, 2026 09:19
@zlonast zlonast mentioned this pull request Mar 24, 2026
6 tasks
@zlonast zlonast force-pushed the zlonast/old-mkVersion branch from fce4414 to 3b62aac Compare March 24, 2026 09:31
@zlonast
Copy link
Copy Markdown
Collaborator Author

zlonast commented Mar 24, 2026

Unknown package cabal-dev-scripts

🤔

@zlonast zlonast changed the title We just dropped everything below (ghc 8.0.0, base 4.9.0.0, cabal 2.0.0.0) Drop support for anything below GHC 8.0.0, base 4.9.0.0, Cabal 2.0.0.0 Mar 24, 2026
Copy link
Copy Markdown
Member

@Mikolaj Mikolaj left a comment

Choose a reason for hiding this comment

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

I seem there are still review comments to be addressed so it may need some more work in general I love the idea and removing code is good. Thank you!

@zlonast zlonast requested a review from ffaf1 March 26, 2026 19:54
@Bodigrim
Copy link
Copy Markdown
Collaborator

Bodigrim commented Apr 1, 2026

@zlonast could you please rebase?

@zlonast zlonast force-pushed the zlonast/old-mkVersion branch 2 times, most recently from 4e0b01a to 39ff388 Compare April 2, 2026 08:41
@zlonast zlonast force-pushed the zlonast/old-mkVersion branch from 39ff388 to 5107892 Compare April 2, 2026 08:58
@zlonast zlonast requested a review from Bodigrim April 2, 2026 11:20
| isGHC, compVer >= mkVersion [8, 0] = mkVersion [1, 24]
| isGHC, compVer >= mkVersion [7, 10] = mkVersion [1, 22]
| otherwise = mkVersion [1, 20]
| otherwise = mkVersion [2, 0]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This seemingly drops support of GHC 8.0 as well?.. Could we keep it for now?

, flagDebugInfo = v >= [7, 10]
, flagHie = v >= [8, 8]
, supportsDebugLevels = v >= [8, 0]
, supportsPkgEnvFiles = v >= [8, 0, 1, 20160901] -- broken in 8.0.1, fixed in 8.0.2
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This one is probably worth keeping for now, until we decide to drop GHC 8.0 entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants