0c0b1668d7
fix erasure issues inside where clauses (add type to LetRec)
2024-12-06 20:55:16 -08:00
8d8078f968
improvements to erasure checking
2024-12-06 20:34:40 -08:00
18e44cb7d3
Improvements to erasure checking, fix to codegen issue
2024-11-29 10:02:45 -08:00
d4bcbc5949
primitive erasure implementation, dead code elimination
2024-11-26 14:10:24 -08:00
affae1fecf
Allow where defs to refer to themselves
2024-11-20 19:51:25 -08:00
6b36dd1cd1
First pass at sugar for instances.
2024-11-17 19:33:19 -08:00
9767d92952
more tweaks to pretty printing.
2024-11-15 20:16:02 -08:00
0589a30d40
Address a few issues in Combinatory.newt
2024-11-13 20:25:02 -08:00
9e72ed67fc
refactoring
...
- move over to env for unify et al
- fix issue where constraint had short context
- drop parameters block - make it clear where context is being used
2024-11-12 21:34:43 -08:00
bbd4832671
printing improvements, improve case eval
2024-11-09 09:34:37 -08:00
bd51c8352a
expand scrutinee in eval
2024-11-08 20:46:34 -08:00
d09afd89e0
Fix issue in case eval
2024-11-02 19:43:04 -08:00
6baee23a73
addZero now works
...
distinguish two modes of unification
while pattern matching we return constraints on variables, and normally
we are more aggressive about evaluating when matching against a variable.
fixes to `let`
surface #check in vscode
2024-11-02 18:23:46 -08:00
91eec503d1
clean up some vscode noise from backtracking
2024-10-30 21:39:26 -07:00
0fb5b08598
Typeclass works for Monad
2024-10-29 16:36:41 -07:00
e54aced733
Make eval less aggressive about substitution
2024-10-27 12:22:04 -07:00
95a4baf12d
_+_ works with an Add typeclass now.
...
- add test case
- fix some issues with eval
- filter out non-candidates for auto search
2024-10-26 21:51:57 -07:00
e1ef6b5ee5
Preliminary work on autos
2024-10-25 21:07:12 -07:00
9148852eb5
character lits, initial work on literal case trees
2024-10-21 22:53:05 -07:00
125a8c5ac5
Fix issue where top level is expanded, but stuck on Case
2024-10-08 21:18:17 -07:00
75015f094a
more test cases, problem in Tree.newt
2024-10-07 20:59:50 -07:00
497ef7a9f0
Fix unification issues, add debug messages
2024-10-02 19:56:42 -07:00
beb7b1a623
1 + 1 = 2
2024-09-28 21:18:03 -07:00
4f9c7fa8a9
rearrange deck chairs
2024-09-28 11:39:34 -07:00