Update for Stack LTS 21.9 and Aeson 2.x #52
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the package to work with the latest Stack LTS resolver.
This change has three main components:
stack.yaml
to specify the LTS 21.9 resolver and eliminate explicit version bounds on most dependencies;KeyMap
type (introduced in v2.0.0.0).The package builds successfully with
stack build
.There are a few outstanding issues:
json-autotype-gen-test
test suite fails. I suspect this was already the case, but I don't know because I can't get the package to build without my updates. The test suit is opaque, so I can't see why it's failing.cabal build
, failing immediately with a parse error of thecabal.project
file. I didn't look into this, but I suggest deleting all of the Cabal-specific files and (if desired) re-generating them from the working Stack config with a tool likestack2cabal
.json-alt
package in itsjson-alt.cabal
file from 1.0.1 to 1.0.0., presumably because someone in the past edited the Cabal file directly rather than the Hpackpackage.yaml
file to bump the version number. Hpack doesn't offer much at this point aside from incidental complexity, so I would suggest again generating Cabal files from the working Stack config, and getting rid of the Hpack config files altogether.If you interested in merging this, let me know what you'd like done to get it in a state you'd be happy with.