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

Fix caseCmd for RepConstr #2666

Merged
merged 2 commits into from
Feb 26, 2024
Merged

Fix caseCmd for RepConstr #2666

merged 2 commits into from
Feb 26, 2024

Conversation

janmasrovira
Copy link
Collaborator

@janmasrovira janmasrovira commented Feb 21, 2024

See #2670 for an example which triggers the bug.

The nockma case compilation did not correctly compile case expressions for standard (i.e not list or tuple) constructors.

Existing compilation tests (e.g Tree, Lambda Calculus) did not fail due to the relevant fromJust never being evaluated due to lazy evaluation. The tests now write out the resulting nockma file to force full evaluation.

@paulcadman paulcadman marked this pull request as ready for review February 23, 2024 18:01
@lukaszcz lukaszcz self-requested a review February 26, 2024 09:07
@lukaszcz lukaszcz merged commit 1413f8f into main Feb 26, 2024
6 of 8 checks passed
@lukaszcz lukaszcz deleted the fix-caseCmd branch February 26, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[nockma] compiler crash when compiling a case expression with no default branch
3 participants