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

Support Anoma representation of Maybe #2856

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Support Anoma representation of Maybe #2856

merged 2 commits into from
Jun 26, 2024

Conversation

paulcadman
Copy link
Collaborator

This PR add support for Anoma/Nockma representation of the Maybe type (and other Maybe-like inductive types).

Anoma has chosen to represent the Maybe type in Nockma in the following way:

nothing: nil
just x: [nil x]

The strategy used in this PR is the same as the one we use for 'List-like' inductive type representations.

@paulcadman paulcadman added this to the 0.6.3 milestone Jun 25, 2024
@paulcadman paulcadman self-assigned this Jun 25, 2024
@paulcadman paulcadman force-pushed the anoma-nockma-maybe branch 2 times, most recently from 26e5e91 to 8f0a665 Compare June 25, 2024 18:07
@paulcadman paulcadman merged commit 5538aee into main Jun 26, 2024
4 checks passed
@paulcadman paulcadman deleted the anoma-nockma-maybe branch June 26, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Anoma representation of Maybe in nockma backend
2 participants