Show type of thing the cursor is currently on at the REPL #2255
Labels
C-Low Hanging Fruit
Ideal issue for new contributors.
G-REPL
An issue having to do with the REPL.
S-Nice to have
The bug fix or feature would be nice but doesn't currently have much negative impact.
T-UI
Involves the user interface.
Z-Feature
A new feature to be added to the game.
Z-User Experience
This issue seeks to make the game more enjoyable to play.
Originally posted by @xsebek in #1955 (comment)
Concretely, I think the idea should be to show the type (in the UR corner of the REPL panel) of the most deeply nested part of the input AST that the cursor is on or after. For example (the cursor position is indicated by
|
):build {give | }
would displaygive : Actor -> Text -> Cmd Unit
foo ((2 + 3) | + 7)
would display2 + 3 : Int
The text was updated successfully, but these errors were encountered: