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

Ledger types handlers #24

Merged
merged 9 commits into from
Feb 12, 2025
Merged

Ledger types handlers #24

merged 9 commits into from
Feb 12, 2025

Conversation

kozross
Copy link
Member

@kozross kozross commented Jan 28, 2025

Closes #23 . This provides a structure to be expanded upon in later PRs, showing the three kinds of read-only accessors we provide for those types not designed to be constructed:

  • An 'unwrapper', for single-field, single-arm products (or newtypes)
  • A 'field accessor', for multi-field, labelled, single-arm products (or records)
  • A 'destructor' for multi-arm sums (designed to take a Boehm-Berrarducci-style destructor function, as well as the data to be destructed)

Follow-up tickets will be made to expand this.

@kozross kozross merged commit 3e344a0 into main Feb 12, 2025
13 checks passed
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.

Accessors for V3 ledger types
4 participants