Skip to content

Add test for changing type of field inside Optional#1332

Merged
Gabriella439 merged 2 commits intomasterfrom
gabriella/add_with_optional_test
Apr 6, 2023
Merged

Add test for changing type of field inside Optional#1332
Gabriella439 merged 2 commits intomasterfrom
gabriella/add_with_optional_test

Conversation

@Gabriella439
Copy link
Copy Markdown
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.

1 participant