Skip to content

Add aeson 2.0.0.0 support#6

Open
tathougies wants to merge 6 commits into
fieldstrength:masterfrom
f-omega:master
Open

Add aeson 2.0.0.0 support#6
tathougies wants to merge 6 commits into
fieldstrength:masterfrom
f-omega:master

Conversation

@tathougies
Copy link
Copy Markdown

What the title says.

Copy link
Copy Markdown

@mbg mbg left a comment

Choose a reason for hiding this comment

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

@tathougies thanks for making this work with aeson 2! I noticed a few things related to the .cabal file that might need to be fixed before this can be merged.

@fieldstrength I like this library a lot and it would be nice to see it support aeson 2. Any chance this PR could get merged (with any necessary changes) and a new version could be pushed to Hackage then?

Comment thread aeson-deriving.cabal Outdated
hs-source-dirs:
src
default-extensions: ConstraintKinds DataKinds DeriveFunctor DeriveGeneric DerivingStrategies FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving KindSignatures LambdaCase MultiParamTypeClasses NamedFieldPuns OverloadedStrings ScopedTypeVariables TupleSections TypeApplications TypeOperators
default-extensions: ConstraintKinds DataKinds DeriveFunctor DeriveGeneric DerivingStrategies FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving KindSignatures LambdaCase MultiParamTypeClasses NamedFieldPuns OverloadedStrings ScopedTypeVariables TupleSections TypeApplications TypeOperators CPP
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't see CPP being used anywhere in the code changes -- is it leftover from some previous work / can it be removed?

Comment thread aeson-deriving.cabal Outdated
ghc-options: -Wall -Wredundant-constraints -Wincomplete-record-updates -Wincomplete-uni-patterns
build-depends:
aeson >=1.2 && <1.6
aeson >=1.2 && <2.1
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Should the lower bound also be 2.0 here? It is for the library component.

Comment thread aeson-deriving.cabal Outdated
@@ -7,7 +7,7 @@ cabal-version: 1.12
-- hash: 05a421de32621a1d52633e1311198dbc32abe2ea1f27c1e0f003d14a579b97e5
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The .cabal file is generated from package.yaml, but you seem to have edited the .cabal file directly. You should make the changes to package.yaml and then re-generate the .cabal file from it with hpack.

@LupusAnay
Copy link
Copy Markdown

Is it stale? Is there any chance that this pull request will be merged?

@mbg
Copy link
Copy Markdown

mbg commented Feb 6, 2023

There is https://github.com/fumieval/deriving-aeson which seems to be similar to this library and is more actively maintained.

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.

3 participants