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

accept standard hlists as record/variant specs #14167

Merged
merged 15 commits into from
Jun 16, 2022

Conversation

S11001001
Copy link
Contributor

@S11001001 S11001001 commented Jun 13, 2022

#10827, among other things, made it possible to create record and variant type specs for TypedValueGenerators with ordinary hlists instead of the RNil and RecVarSpec explicit steps, because it avoids scala/bug#5075, which was fatal to previous attempts to do this.

That in turn makes it possible to use the keyword-arg record macro to write specs instead of the older ->> record syntax. A good motivating example is at the top of HashSpec in this PR.

#14189 is a followup to port the remaining specs to the new syntax. This also aids with #13356, as the idea is for more records to be generated from TypedValueGenerators specs, which calls for those specs to be written in a nicer and more natural format provided here.

@S11001001 S11001001 added component/daml-lf DAML-LF component/json-api HTTP JSON API team/ledger-clients Related to the Ledger Clients team's components. concern/testing gardening Cleanup code, improve tests, better automation, upgrade deps, fix flaky tests, address TODOs, etc. labels Jun 13, 2022
@S11001001 S11001001 self-assigned this Jun 13, 2022
@S11001001 S11001001 marked this pull request as ready for review June 15, 2022 16:18
@S11001001 S11001001 requested a review from a team June 15, 2022 16:18
Copy link
Collaborator

@remyhaemmerle-da remyhaemmerle-da left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@ray-roestenburg-da ray-roestenburg-da left a comment

Choose a reason for hiding this comment

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

LGTM

@S11001001 S11001001 enabled auto-merge (squash) June 16, 2022 12:57
Co-authored-by: Raymond Roestenburg <[email protected]>
@S11001001 S11001001 disabled auto-merge June 16, 2022 13:26
@S11001001 S11001001 enabled auto-merge (squash) June 16, 2022 13:27
@S11001001 S11001001 merged commit 707c3e1 into main Jun 16, 2022
@S11001001 S11001001 deleted the 13356-tvg-big-step-records-variants branch June 16, 2022 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/daml-lf DAML-LF component/json-api HTTP JSON API concern/testing gardening Cleanup code, improve tests, better automation, upgrade deps, fix flaky tests, address TODOs, etc. team/ledger-clients Related to the Ledger Clients team's components.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants