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

Allow compilation with aeson 2.2.0.0. #220

Merged
merged 2 commits into from
Jul 1, 2023
Merged

Conversation

jgm
Copy link
Contributor

@jgm jgm commented Jun 29, 2023

This version of aeson removes Data.Aeson.Internal, but exports the things yaml needed from it in Data.Aeson.Types.

CPP has been used to make it work with both 2.2 and earlier versions. However, I was only able to test with aeson 2.1; attempts to constrain the build to earlier versions did not produce a viable build path.

Closes #219.

jgm added 2 commits June 29, 2023 16:13
This version of aeson removes Data.Aeson.Internal, but exports the
things yaml needed from it in Data.Aeson.Types.

CPP has been used to make it work with both 2.2 and earlier versions.
However, I was only able to test with aeson 2.1; attempts to constrain
the build to earlier versions did not produce a viable build path.

Closes snoyberg#219.
With this change, the code for aeson < 2.2 should be identical to
what it was before -- so we can be confident it won't break anything
that worked before.
@jgm jgm mentioned this pull request Jul 1, 2023
58 tasks
Copy link
Owner

@snoyberg snoyberg left a comment

Choose a reason for hiding this comment

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

Thanks!

@snoyberg snoyberg merged commit 884988e into snoyberg:master Jul 1, 2023
17 checks passed
@andreasabel
Copy link
Contributor

I added upper bound aeson < 2.2 to versions 0.11.7 to 0.11.11.1 on hackage, e.g.: https://hackage.haskell.org/package/yaml-0.11.11.1/revisions/

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.

package not compiling with the latest aeson version (2.2.0.0)
4 participants