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

constructors === id #693

Merged
merged 20 commits into from
Nov 27, 2018
Merged

Conversation

FintanH
Copy link
Collaborator

@FintanH FintanH commented Nov 21, 2018

Fixes #635

Stage 2 of: dhall-lang/dhall-lang#244

Implements the semantics merged here: dhall-lang/dhall-lang#256

The idea is that constructors is equivalent to the identity function so it returns the Union as-is. This means constructors does not create a record of functions to UnionLits but rather utilises the new Union access syntax.

@Gabriella439
Copy link
Collaborator

@FintanH: Alright, feel free to merge this now. You will need to re-freeze ./dhall/tests/import/success/issu553B.dhall to reserve the merge conflict

@Gabriella439
Copy link
Collaborator

Actually, hold off on merging this for just a few days. I'm going to cut a new minor release with the fix to dhall lint in #703 since that's a pretty nasty bug and the fix should be published soon

@FintanH
Copy link
Collaborator Author

FintanH commented Nov 26, 2018

Updated the branch 👌 I had to add dotgen to stack.yaml to get things to compiling

@basile-henry
Copy link
Collaborator

@FintanH Sorry about that, I should have checked that we could still build with stack before I merged #698

@FintanH
Copy link
Collaborator Author

FintanH commented Nov 26, 2018

No problem @basile-henry, that PR is so cool! The dhall-to-cabal graph 😍

@Gabriella439 Gabriella439 merged commit 5a0d671 into dhall-lang:master Nov 27, 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

3 participants