Skip to content

Fix type-checking bug for unions #763

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

Merged
merged 2 commits into from
Dec 22, 2018
Merged

Conversation

Gabriella439
Copy link
Collaborator

The Haskell implementation was not matching the specification for
type-checking union types:

  • The inferred type of union types was (incorrectly) always returning Type
  • Unions of mixed alternative types were not being properly rejected

I also discovered several mistakes in the error messages, which I fixed along
the way.

The Haskell implementation was not matching the specification for
type-checking union types:

* The inferred type of union types was (incorrectly) always returning `Type`
* Unions of mixed alternative types were not being properly rejected

I also discovered several mistakes in the error messages, which I fixed along
the way.
Gabriella439 added a commit to dhall-lang/dhall-lang that referenced this pull request Dec 20, 2018
Thes tests are inspired by mistakes in the Haskell implementation:

dhall-lang/dhall-haskell#763
Gabriella439 added a commit to dhall-lang/dhall-lang that referenced this pull request Dec 22, 2018
Thes tests are inspired by mistakes in the Haskell implementation:

dhall-lang/dhall-haskell#763
@Gabriella439 Gabriella439 merged commit ca78d79 into master Dec 22, 2018
@Gabriella439 Gabriella439 deleted the gabriel/fix_union_typechecking branch December 22, 2018 14:39
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.

1 participant