purescript icon indicating copy to clipboard operation
purescript copied to clipboard

Emit `TypedBinders` when inferring binders

Open purefunctor opened this issue 2 years ago • 0 comments

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.

purefunctor avatar Apr 30 '23 16:04 purefunctor