cardano-ledger
cardano-ledger copied to clipboard
Ts salvage newtylespecs
Description
Meant as a replacement for pull request #4314 Does several things
- Generalizes many of the instances in Test.Cardano.Ledger.Constrained.Conway.Instances to all Eras (not just Conway)
- Introduces two new types SimplePParams and SimplePPUpdate that are the used as the SimpleRep type across all Eras, makes it much easier to write specifications for PParams and PParramUpdates in all eras
- Writes specifications for all the Cardano types used in NewEpochState, EpochState, LedgerState, UTxOState etc.
Checklist
- [ ] Commit sequence broadly makes sense and commits have useful messages
- [ ] New tests are added if needed and existing tests are updated
- [ ] All visible changes are prepended to the latest section of a
CHANGELOG.mdfor the affected packages. New section is never added with the code changes. (See RELEASING.md) - [ ] When applicable, versions are updated in
.cabalandCHANGELOG.mdfiles according to the versioning process. - [ ] The version bounds in
.cabalfiles for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md) - [x] Code is formatted with
fourmolu(usescripts/fourmolize.sh) - [x] Cabal files are formatted (use
scripts/cabal-format.sh) - [x]
hie.yamlhas been updated (usescripts/gen-hie.sh) - [ ] Self-reviewed the diff