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

Create an eta-expander module #13

Open
fredins opened this issue Mar 29, 2023 · 0 comments
Open

Create an eta-expander module #13

fredins opened this issue Mar 29, 2023 · 0 comments
Labels

Comments

@fredins
Copy link
Contributor

fredins commented Mar 29, 2023

This program type checks but wont work for the latter parts of the compiler

add : Int -> Int -> Int
add x y = x + y

apply : forall a. (a -> a) -> a -> a
apply f x = f x

plus4 : Int
plus4 = apply (add 4) 2

A new module needs to be created that expands (add 4) to (\x. add 4 x).
This module is after the type checker and before the lambda lifter.

@fredins fredins added the todo label Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant