Skip to content

Remove *Field data types from Generic tests#5144

Merged
Soupstraw merged 1 commit intomasterfrom
jj/remove-fields
Jul 10, 2025
Merged

Remove *Field data types from Generic tests#5144
Soupstraw merged 1 commit intomasterfrom
jj/remove-fields

Conversation

@Soupstraw
Copy link
Contributor

@Soupstraw Soupstraw commented Jun 27, 2025

Description

This PR simplifies the Generic tests framework by replacing the Field datatypes with lenses. I removed some dead code and got rid of Proofs in a couple of places by turning the functions into typeclass methods.

Checklist

  • Commits in meaningful sequence and with useful messages.
  • Tests added or updated when needed.
  • CHANGELOG.md files updated for packages with externally visible changes.
    NOTE: New section is never added with the code changes. (See RELEASING.md).
  • Versions updated in .cabal and CHANGELOG.md files when necessary, according to the
    versioning process.
  • Version bounds in .cabal files updated when necessary.
    NOTE: If bounds change in a cabal file, that package itself must have a version increase. (See RELEASING.md).
  • Code formatted (use scripts/fourmolize.sh).
  • Cabal files formatted (use scripts/cabal-format.sh).
  • CDDL files are up to date (use scripts/gen-cddl.sh)
  • hie.yaml updated (use scripts/gen-hie.sh).
  • Self-reviewed the diff.

@Soupstraw Soupstraw changed the title WIP Remove *Field data types from Generic tests Jul 1, 2025
@Soupstraw Soupstraw force-pushed the jj/remove-fields branch 15 times, most recently from 12bb842 to 1254bde Compare July 8, 2025 11:51
@Soupstraw Soupstraw marked this pull request as ready for review July 8, 2025 11:53
@Soupstraw Soupstraw requested a review from a team as a code owner July 8, 2025 11:53
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very nice simplification!
There is a problem with building on newer ghc, but other than that I don't see a reason why we can't merge it.

@Soupstraw Soupstraw force-pushed the jj/remove-fields branch 2 times, most recently from 2c1755e to b17b600 Compare July 10, 2025 12:04
@Soupstraw Soupstraw enabled auto-merge (rebase) July 10, 2025 15:31
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice simplification. Thank you!

@Soupstraw Soupstraw merged commit 4d330c5 into master Jul 10, 2025
130 of 132 checks passed
@Soupstraw Soupstraw deleted the jj/remove-fields branch July 10, 2025 22:07
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.

3 participants