Skip to content

Comments

Add aeson 2.0.0.0 support#6

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

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

Conversation

@tathougies
Copy link

What the title says.

Copy link

@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?

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

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?

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

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.

@@ -7,7 +7,7 @@ cabal-version: 1.12
-- hash: 05a421de32621a1d52633e1311198dbc32abe2ea1f27c1e0f003d14a579b97e5
Copy link

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

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

@mbg
Copy link

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