denibertovic / docker-hs

A Haskell library for the Docker Engine API
BSD 3-Clause "New" or "Revised" License
76 stars 48 forks source link

Add compatibility with `lens-aeson-1.2` #95

Closed mbg closed 2 years ago

mbg commented 2 years ago

The tests depend on lens-aeson which has had a major update in version 1.2, which is in the nightly Stack resolvers (forthcoming LTS 20 for GHC 9.2) to update its types in line with the changes in aeson-2. This PR modifies the tests to be compatible with this new version of lens-aeson.

I have manually run the stackage-nightly workflow on my clone of the repository to check that it succeeds with the changes in this branch: https://github.com/mbg/docker-hs/actions/runs/2089799457. All the LTS workflows should pass as before.

I have also included a small change in the CI workflow configuration which ensures that the caches are kept separate between different Stack resolvers in order to remove a potential source of errors for the future.

See also https://github.com/denibertovic/docker-hs/pull/89#issuecomment-1086017860.

denibertovic commented 2 years ago

Thanks @mbg . This is awesome.

denibertovic commented 2 years ago

@mbg @jprider63 FYI I've tagged and pushed a release to hackage.