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

Add support for bytestring 0.11 #256

Merged
merged 1 commit into from
Feb 24, 2021
Merged

Conversation

sjakobi
Copy link
Contributor

@sjakobi sjakobi commented Feb 2, 2021

http://hackage.haskell.org/package/bytestring-0.11.0.0/changelog

Since cborg uses the internal PS constructor which is a bundled pattern
synonym in bytestring >= 0.11, we stick to bytestring < 0.11 for
GHC < 8.0 where bundled pattern synonyms aren't supported.

@sjakobi
Copy link
Contributor Author

sjakobi commented Feb 2, 2021

Until attoparsec (haskell/attoparsec#174) and uuid-types (haskell-hvr/uuid#54) have compatible releases, this can be tested with --allow-newer='uuid-types:bytestring,attoparsec:bytestring'.

@sjakobi sjakobi marked this pull request as ready for review February 3, 2021 17:21
@sjakobi
Copy link
Contributor Author

sjakobi commented Feb 17, 2021

Ping @bgamari, @thoughtpolice! :)

Copy link
Member

@dcoutts dcoutts left a comment

Choose a reason for hiding this comment

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

Thanks!

If you don't mind, I'll separate this out a bit:

  • separating the bytestring version relaxation patch from the travis changes as a separate patch
  • dropping the patch that drops support for older ghc versions (it's not terrible to drop support, but it doesn't need to be bundled in this PR)

Since cborg uses the internal PS constructor which is a bundled pattern
synonym in bytestring >= 0.11, we stick to bytestring < 0.11 for
GHC < 8.0 where bundled pattern synonyms aren't supported.
@sjakobi
Copy link
Contributor Author

sjakobi commented Feb 23, 2021

Thanks for the suggestion @dcoutts. I've much simplified the patch by disallowing bytestring >= 0.11 with GHC < 8.0.

Copy link
Member

@dcoutts dcoutts left a comment

Choose a reason for hiding this comment

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

Oh that's much better! Thanks!

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.

2 participants