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

Add test for changing type of field inside Optional #1332

Merged
merged 2 commits into from
Apr 6, 2023

Conversation

Gabriella439
Copy link
Contributor

The Haskell implementation of Dhall had a bug where it permitted this update, leading to an invalid inferred type:

 (None { x : Natural }) with ?.x = True

None { x : Natural }

The Haskell implementation of Dhall had a bug where it permitted
this update, leading to an invalid inferred type:

```dhall
⊢ (None { x : Natural }) with ?.x = True

None { x : Natural }
```
Gabriella439 added a commit to dhall-lang/dhall-haskell that referenced this pull request Apr 5, 2023
See: dhall-lang/dhall-lang#1332

The standard already required this, but the Haskell implementation was
not correctly conforming to the standard.  Fixing this not only
simplifies the Haskell code but also makes the code more greatly
resemble the corresponding standard judgement.
@Gabriella439 Gabriella439 merged commit d7907f2 into master Apr 6, 2023
@Gabriella439 Gabriella439 deleted the gabriella/add_with_optional_test branch April 6, 2023 05:54
Gabriella439 added a commit to dhall-lang/dhall-haskell that referenced this pull request Apr 16, 2023
See: dhall-lang/dhall-lang#1332

The standard already required this, but the Haskell implementation was
not correctly conforming to the standard.  Fixing this not only
simplifies the Haskell code but also makes the code more greatly
resemble the corresponding standard judgement.
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

1 participant