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

feat: Return arrows from functions #693

Merged
merged 9 commits into from
Apr 14, 2023
Merged

feat: Return arrows from functions #693

merged 9 commits into from
Apr 14, 2023

Conversation

DieMyst
Copy link
Member

@DieMyst DieMyst commented Apr 10, 2023

fixes LNG-131

@linear
Copy link

linear bot commented Apr 10, 2023

LNG-131 Arrows in return type

Now arrows can be passed as arguments to other arrows, but it's not possible to return an arrow from a function.

Need to fix that.

  • Allow arrow types in codomain
  • Allow wrapping any single type with braces f: X -> (Y -> Z, T), P
  • When an arrow is called, put returned arrows into local arrow names
  • For export functions, forbid arrows in returns

@DieMyst DieMyst added the e2e Run e2e workflow label Apr 10, 2023
@DieMyst DieMyst marked this pull request as ready for review April 10, 2023 09:21
@DieMyst DieMyst requested a review from alari April 10, 2023 09:21
@DieMyst DieMyst merged commit 8fa979c into main Apr 14, 2023
@DieMyst DieMyst deleted the LNG-131-return-arrows branch April 14, 2023 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e Run e2e workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants