-
Notifications
You must be signed in to change notification settings - Fork 82
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
Update lower bounds (base, template-haskell) #254
Conversation
The time library only supports the most recent three versions of GHC (9.4, 9.6, 9.8). |
That's fine, but this should be reflected in the bounds of the package, so that Cabal's solver doesn't pick them. As it stands, version 1.14 is picked with older GHCs when it doesn't build with them. This causes CI breakages for packages that have wider compatibility windows. |
OK, fair. Probably setting the lower bound of |
da41f19
to
013d3f4
Compare
This commit updates the following lower bounds: template-haskell: 2.16 -> 2.17 base: 4.14 -> 4.15 This ensures we don't try to build time >= 1.14 with GHC 8.10 or below, which is not supported: lib\Data\Time\Clock\Internal\DiffTime.hs:83:18: error: Error: Not in scope: type constructor or class ‘TH.Quote’ lib\Data\Time\Clock\Internal\DiffTime.hs:83:44: error: Error: Not in scope: type constructor or class ‘TH.Code’
@AshleyYakeley I have updated this PR with a lower bound on base. I have run the CI on my fork with an extended set of GHC versions and can confirm that |
Is there anything blocking this PR from getting merged? Let me know if you would like some changes. |
You don't need to do anything. But I need to write some testing related to this to make sure time never gets selected with unsupported GHC versions. |
OK, have also updated time-1.14 on Hackage with the new constraints. |
Great, thanks a lot. |
This PR updates the following lower bounds:
template-haskell: 2.16 -> 2.17
base: 4.14 -> 4.15
This ensures we don't try to build time >= 1.14 with GHC 8.10 or below,
which is not supported:
lib\Data\Time\Clock\Internal\DiffTime.hs:83:18: error:
Error: Not in scope: type constructor or class ‘TH.Quote’
lib\Data\Time\Clock\Internal\DiffTime.hs:83:44: error:
Error: Not in scope: type constructor or class ‘TH.Code’
I believe this should be applied as a Hackage revision to the package as well.