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

Require base >= 4.11. #2

Merged
merged 1 commit into from Jun 5, 2019
Merged

Require base >= 4.11. #2

merged 1 commit into from Jun 5, 2019

Conversation

robx
Copy link
Contributor

@robx robx commented Jun 5, 2019

Ranged-sets-0.4.0 fails to build with base <= 10 / ghc 8.2 due to the missing Semigroup
class.

Data/Ranged/RangedSet.hs:74:31: error:
    Not in scope: type constructor or class ‘Semigroup’
   |
74 | instance DiscreteOrdered a => Semigroup (RSet a) where
   |                               ^^^^^^^^^

This is causing me build failures trying to build postgrest with older ghc versions.

Could you please also apply this change via hackage's "edit package information" to
ensure that cabal chooses Ranged-sets <0.4 when building with older ghc versions?

If you like, I'd be happy to test and submit a PR for a Ranged-sets-0.4.1 that builds
with older base versions.

Fails to build with base <= 10 / ghc 8.2 due to the missing Semigroup
class:

Data/Ranged/RangedSet.hs:74:31: error:
    Not in scope: type constructor or class ‘Semigroup’
   |
74 | instance DiscreteOrdered a => Semigroup (RSet a) where
   |                               ^^^^^^^^^
@PaulJohnson PaulJohnson merged commit 47f6d0c into PaulJohnson:master Jun 5, 2019
@PaulJohnson
Copy link
Owner

OK, I've accepted the pull request and updated the metadata in Hackage. Let me know if that works and I'll close the report.

@robx
Copy link
Contributor Author

robx commented Jun 6, 2019

Thanks! It seems though that you revised the test build-depends instead of the library build-depends: http://hackage.haskell.org/package/Ranged-sets-0.4.0/revisions/, would you mind also updating the library?

(Build failure here building postgrest with ghc 8.0 because it tries to use Ranged-sets-0.4.0: https://travis-ci.org/robx/postgrest/jobs/542330852)

@robx
Copy link
Contributor Author

robx commented Jun 6, 2019

That was quick thank you! The build works now.

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.

None yet

2 participants