Commit Graph

58 Commits

Author SHA1 Message Date
983dde4de2 derive Show and Eq, improvements to LSP 2026-02-24 20:14:30 -08:00
a789cffcce move Error to its own file 2026-02-24 11:04:38 -08:00
ccdb15c6ec import action for out of scope names, start introducing error types
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled
2026-02-24 09:33:53 -08:00
69a7b6bed8 Fix LSP slowness, improve error messages 2026-02-23 20:48:25 -08:00
3cc3801f4d Add "intro" to LSP, improve error locations 2026-02-23 13:16:06 -08:00
34744a8edc refactor TopContext to use a ModContext for the current context 2026-02-21 21:34:16 -08:00
0a5ad3cc9b Switch to esm, add #export statement to newt, tweaks to LSP 2026-02-21 15:08:15 -08:00
c54b856f0b Don't allow uppercase pattern variables 2026-02-20 18:44:47 -08:00
7d5789147d cleanup 2026-02-20 18:44:44 -08:00
cd31156404 add missing and case split for lsp 2026-02-17 22:01:58 -08:00
fa0eb3a26d Better location on an error 2026-02-16 21:46:49 -08:00
7f2fa27aa6 cleanup 2026-02-16 11:59:34 -08:00
adff28ea0f Remove some workarounds for record update issues 2026-02-15 21:51:16 -08:00
3201139523 improvements to type checking of record updates 2026-02-15 21:38:44 -08:00
24048eadf1 use string for module names 2026-02-13 10:18:28 -08:00
e1d83556ae LSP jump to definition 2026-02-12 21:59:56 -08:00
a9718621e3 Initial LSP implementation/vscode support
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled
2026-02-12 20:26:15 -08:00
6a16dc6150 better name for metas
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled
2026-02-11 13:32:45 -08:00
d36f6ddacb Add missing import in vscode, fix add missing cases at EOF
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled
2026-02-07 22:25:18 -08:00
eed5c09508 Minor changes 2026-01-31 12:52:01 -08:00
f3a18fa658 Fix stray skolem issue
Sometimes a Bound variable on the LHS became Defined to itself.
This commit also resurfaces INFO messages, to aid finding the root
cause of errors.
2026-01-31 12:49:39 -08:00
3dd9955533 Postpone non-linear solutions 2026-01-23 08:49:30 -08:00
31cc891046 names from types on add missing cases 2026-01-05 21:25:55 -08:00
2ca43b6350 Dependent records
The projection functions needed `foo` -> `self .foo` in the types
2026-01-05 20:52:35 -08:00
bfe79d65ea remove redundant $ 2025-12-30 22:00:27 -08:00
0dfa96cb5e use new case syntax instead of the 2025-12-29 10:48:22 -08:00
f4d1e86319 Optional type annotation on case scrutinee 2025-12-29 10:24:15 -08:00
223b1563a9 pattern matching can dot with applied vars 2025-12-29 09:51:30 -08:00
fe3e25f009 AoC todos and tweaks 2025-12-13 14:51:26 -08:00
63687499dc check impossible clauses
Also clean up some comments.

We now have types in constraints, but are still using values from
context.
2025-11-14 21:45:19 -08:00
79113fbce5 add impossible clauses (not checked yet) 2025-11-14 10:53:35 -08:00
d763be55d4 Update LiftLambda to erase Zero args 2025-10-26 09:42:12 -07:00
11ffd96a91 Remove erased function arguments 2025-10-23 22:34:14 -07:00
15b892510e Map Bool-shaped things to javascript bool, add if/then and tertiary to code gen 2025-10-20 11:08:12 -07:00
2794f8fe85 Cleanup some old comments, use record update a bit more 2025-10-11 21:47:38 -07:00
c39d1354c8 Primitive "Add missing cases" for vscode 2025-10-11 13:17:44 -07:00
2a5e5ae4f5 add error for stray, incorrect constructors 2025-10-10 09:03:25 -07:00
be40c431fe Add error when a constructor is used for a primitive argument.
Add testing for errors.
2025-10-06 15:21:54 -07:00
8209d2d839 Use numbers for constructor tags. 2025-10-04 14:56:59 -07:00
3143fa7b0a More inlining, fix issues in eval of case 2025-09-23 20:22:50 -07:00
97c50a254a the "mode" argument to eval was unused and not fully propagated 2025-09-02 21:10:32 -07:00
27d9250d34 Fix build of newt3.js 2025-09-01 12:06:49 -07:00
33a4cf6070 Fix issue building newt 2025-08-28 21:24:29 -07:00
bcf34c0941 [ auto ] try autos if a meta in their type is solved
Also cut tryEval if the result is a lambda
2025-07-27 14:52:24 -07:00
ff23deb825 [ fix ] error messages mangled by Idris to Newt translation 2025-07-27 14:29:14 -07:00
0e110cd14f [ unify ] unify literals correctly 2025-07-26 08:07:48 -07:00
2d53976602 [ cleanup ] dead code 2025-07-26 07:23:48 -07:00
800cec28de cleanup 2025-07-18 20:47:45 -04:00
9bd9ab21b6 fix env (should have used an index...) 2025-07-10 21:14:42 -04:00
8dae8880f9 Remove unnecessary IORef for meta context 2025-05-20 21:36:52 -07:00