Skip to content
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

Ts salvage newtylespecs #4575

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Ts salvage newtylespecs #4575

wants to merge 3 commits into from

Conversation

TimSheard
Copy link
Contributor

@TimSheard TimSheard commented Aug 27, 2024

Description

Meant as a replacement for pull request #4314
Does several things

  1. Generalizes many of the instances in Test.Cardano.Ledger.Constrained.Conway.Instances to all Eras (not just Conway)
  2. 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
  3. Writes specifications for all the Cardano types used in NewEpochState, EpochState, LedgerState, UTxOState etc.
  4. Significantly improves error reporting when the system is over constrained.

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.md for the affected packages.
    New section is never added with the code changes. (See RELEASING.md)
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files 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)
  • Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • Cabal files are formatted (use scripts/cabal-format.sh)
  • hie.yaml has been updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

@TimSheard TimSheard force-pushed the ts-salvage-newtylespecs branch 4 times, most recently from 0442870 to ad19fcf Compare September 6, 2024 01:35
@TimSheard TimSheard force-pushed the ts-salvage-newtylespecs branch 7 times, most recently from 306ea10 to 9ce4374 Compare September 16, 2024 20:07
Added names to variables in StateSpecs
Added better error messages, better printing of graphs
Added selector functions for SimplePParams
Added alternateShow for list based showing of Binary Specs (SumSpec and Prod)
Added HSpec tests
Imporoved error messages (especially for caseOn)
@TimSheard TimSheard force-pushed the ts-salvage-newtylespecs branch 2 times, most recently from 2de24cf to da93b2d Compare September 17, 2024 18:59
…t 2 files.

Added modules InstancesBasic and WellFormedF
@TimSheard TimSheard marked this pull request as ready for review September 18, 2024 12:46
@TimSheard TimSheard requested a review from a team as a code owner September 18, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants