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 unit test for type inference of empty alternative #532

Conversation

philandstuff
Copy link
Collaborator

This case was missing from the type inference unit tests.

This case was missing from the type inference unit tests.
@philandstuff philandstuff merged commit 805cdb6 into master May 7, 2019
@philandstuff philandstuff deleted the philandstuff/unit-test-empty-union-alternative-type-inference branch May 7, 2019 20:59
TristanCacqueray pushed a commit to TristanCacqueray/dhall-lang that referenced this pull request Jan 4, 2025
Part of dhall-lang#532

Before this change a type diff might look like this:

```haskell
  ∀(… :   ∀(… : …)
        → …)
→ ∀(… : - Type
        + { … : … }
  )
→ ∀(… : - ∀(… : …) → …
        + Type
  )
→ - … …
  + ∀(… : …) → …
```

... and after this change the same diff is now more concise:

```haskell
  …
→ ∀(… : - Type
        + { … : … }
  )
→ ∀(… : - … → …
        + Type
  )
→ - … …
  + … → …
```
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.

3 participants