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 lambda type info #1845

Merged
merged 3 commits into from
Feb 14, 2023
Merged

Add lambda type info #1845

merged 3 commits into from
Feb 14, 2023

Conversation

janmasrovira
Copy link
Collaborator

This pr adds the _lambdaType :: Maybe Expression to Internal.Lambda.
This field will be Nothing before typechecking and Just _ after it.

The type is printed if present. For example if the input of juvix dev internal typecheck M.juvix --print-result is the following:

id : {A : Type} → A → A
id := λ { a := a}

Then the output is as follows:

id : {A : Type} → A → A
id {_ω209} := λ : _ω209 → _ω209 {| a := a}

@lukaszcz lukaszcz merged commit 9ae0a41 into main Feb 14, 2023
@lukaszcz lukaszcz deleted the lambda-type branch February 14, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants