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 new operator for merging record types #117

Merged
merged 3 commits into from
Mar 31, 2018

Conversation

Gabriella439
Copy link
Contributor

Fixes #92

This is the type-level analog of , which allows you to do:

{ foo : Text } ⩓ { bar : Bool } = { foo : Text, bar : Bool }

The motivation for this is to allow reusing the same field types between
several related records

The ASCII representation of the operator is //\\

Fixes #92

This is the type-level analog of `∧`, which allows you to do:

```
{ foo : Text } ⩓ { bar : Bool } = { foo : Text, bar : Bool }
```

The motivation for this is to allow reusing the same field types between
several related records

The ASCII representation of the operator is `//\\`
@ocharles
Copy link
Member

I think this has the potential to really clean up some types in dhall-to-cabal. I'm on holiday on Monday, mind postponing the merge until then? I'd love to have a read through the changes.

@Gabriella439
Copy link
Contributor Author

@ocharles: Yeah, no problem. I'm in no hurry to merge. The 3 day policy is only a minimum delay if there is no discussion

@Gabriella439
Copy link
Contributor Author

@ocharles: I just wanted to check if you had a chance to look at this

@Gabriella439
Copy link
Contributor Author

@ocharles: Do you still want to review this before I merge?

@ocharles
Copy link
Member

ocharles commented Mar 30, 2018 via email

@Gabriella439 Gabriella439 merged commit d514fb7 into master Mar 31, 2018
@Gabriella439 Gabriella439 deleted the gabriel/combine_types branch March 31, 2018 02:01
Gabriella439 added a commit to dhall-lang/dhall-haskell that referenced this pull request Mar 31, 2018
Gabriella439 added a commit to dhall-lang/dhall-haskell that referenced this pull request Mar 31, 2018
geigerzaehler pushed a commit to geigerzaehler/dhall-vim that referenced this pull request Jul 8, 2018
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