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

Optimizations: Optimize known coproducts to named types such as Option or Either #12

Closed
pepegar opened this issue Aug 3, 2018 · 0 comments · Fixed by #19
Closed

Optimizations: Optimize known coproducts to named types such as Option or Either #12

pepegar opened this issue Aug 3, 2018 · 0 comments · Fixed by #19
Assignees

Comments

@pepegar
Copy link
Member

pepegar commented Aug 3, 2018

Create two AST optimizations in FreesF:

  • Cop[A :: Null :: CNil] -> Option[A]
  • CopK[A :: B :: CNil] -> Either[A, B]
@pepegar pepegar changed the title Optimizations Optimizations: Optimize known coproducts to named types such as Option or Either Aug 3, 2018
@franciscodr franciscodr self-assigned this Oct 19, 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 a pull request may close this issue.

2 participants