fix pipe issue in REPL, add ability to dump top in repl

This commit is contained in:
2026-02-09 10:36:59 -08:00
parent 08ed4178cf
commit a17a9c4342
5 changed files with 10 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ data ReplCommand
| GetDoc String
| BrowseCmd QName
| HelpCmd
| DumpTop
kw : String Parser String
kw s = satisfy (\t => t.val.text == s) "Expected \{show s}"
@@ -61,6 +62,7 @@ commands
:: MkCmd ":d" "document function" ArgIdent GetDoc
:: MkCmd ":doc" "document function" ArgIdent GetDoc
:: MkCmd ":b" "browse namespace" ArgQName BrowseCmd
:: MkCmd ":top" "dump top context as json" ArgNone DumpTop
-- type at point
-- solve hole
-- search by prefix (for autocomplete - ideally include types at point, but we'd need recovery)