Closed s9gf4ult closed 2 years ago
@joelfisch ^ This is the issue that I ran into as well.
Hi @s9gf4ult, I created a PR to support aeson 2 here: https://github.com/Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator/pull/78 Could you check if this works for you?
@NorfairKing It seems the fix only includes the pre-written file and not the generated files, therefore I do not think it is worth it ATM to switch to autodocodec because of this issue.
Closing this since I have tests in CI testing it with Aeson 2.0. Please reopen it or create a new issue if it does not work for you or I missed something.
There are new incompatibilities in
aeson-2.0.0.0
.Particularly, the
KeyMap
which is used instead ofMap Text Value
inObject
constructor.The code generated does not compile with
aeson-2
and later.