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 for UnionType #857

Merged
merged 2 commits into from
Mar 16, 2019
Merged

Fix for UnionType #857

merged 2 commits into from
Mar 16, 2019

Conversation

mstksg
Copy link
Contributor

@mstksg mstksg commented Mar 16, 2019

I noticed that I used the wrong type of equality for union subtypes for union. This causes the Type to falsely reject situations where the "other branches" of a union lit are what are expected, but are not in a normalized form. Using judgmentallyEqual gives the proper equality and gets rid of false negatives when testing for equality.

@Gabriella439 Gabriella439 merged commit 35513e7 into dhall-lang:master Mar 16, 2019
@Gabriella439
Copy link
Collaborator

Good catch! 🙂

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.

None yet

2 participants