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

Emit TypedBinders when inferring binders #4472

Open
purefunctor opened this issue Apr 30, 2023 · 0 comments
Open

Emit TypedBinders when inferring binders #4472

purefunctor opened this issue Apr 30, 2023 · 0 comments

Comments

@purefunctor
Copy link
Member

Summary

When expressions are type checked, they usually yield TypedValue False e t. For the purposes of #4247, this makes it easy to figure out interval tree nodes as it's ultimately a matter of doing the following:

    onExpr :: Expr -> [InterfaceAST String]
    onExpr = \case
      TypedValue _ (PositionedValue s _ _) t ->
        [ makeNode (NodeInfo (debugType t) ExpressionNode) s ]
      _ ->
        []

Currently though, this doesn't seem to be the case with binders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant