-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use lenses for JSON editing. Upgrade to hedgehog-extras0.5.1.0
#5626
Use lenses for JSON editing. Upgrade to hedgehog-extras0.5.1.0
#5626
Conversation
c767c8d
to
04fc77d
Compare
& L.key "rho" . L._Double .~ 0.1 | ||
& L.key "tau" . L._Double .~ 0.1 | ||
& L.key "updateQuorum" . L._Integer .~ 2 | ||
& L.key "protocolParams" . L.key "protocolVersion" . L.key "major" . L._Integer .~ 8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out that lenses make a good compatibility shim. The aeson API keeps making breaking changes (for example switching from HashMap to KeyMap lenses help us having to deal with these breaking changes.
04fc77d
to
176cddf
Compare
Kind of superceded by #5621 ? |
& L.key "rho" . L._Double .~ 0.1 | ||
& L.key "tau" . L._Double .~ 0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those are wrong, rho
and tau
can't be at the top level.
I am going to steal your lenses idea and put it into my PR. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where should they go instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a regression in any case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inside protocolParams
. This change just went overlooked, and I've stumbled upon it.
85e6323
to
0db4af8
Compare
cardano-cli-8.17.0.0
and cardano-api-8.37.0.0
hedgehog-extras0.5.1.0
0db4af8
to
28b8f0f
Compare
Description
Upgrade to
hedgehog-extras-0.5.1.0
. Use lenses for JSON editing.Checklist
See Runnings tests for more details
CHANGELOG.md
for affected package.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7
Note on CI
If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.