3ec2f90770
sugar for data and other improvements
...
- parse types in let (everything but parser was there)
- add sugar for `data`
- move `joinBy` to prelude
- fix highlighting for char in vscode
- better errors for missing imports
2024-12-28 09:45:21 -08:00
0992dc1367
split up unify to simplify casetree,
...
- cuts newt.js size in half
- shaves a second off check time for Elab.idr (23%)
- shaves a third off of final link time (33%)
2024-12-27 16:38:50 -08:00
9655434b2a
add namespaces to names
2024-12-26 18:51:46 -08:00
2c7c5eca55
monadic version of day21
2024-12-21 21:02:56 -08:00
d22f3844f6
At patterns on LHS
2024-12-14 20:10:43 -08:00
29abacfa6c
get delete, leftMost, rightMost, pop working for SortedMap
...
required fixing an issue in case building.
2024-12-13 20:58:04 -08:00
f9f29cd932
Day10
2024-12-09 22:43:26 -08:00
9c0b20a6ce
improve error detection in case-tree building
2024-12-07 20:50:22 -08:00
421f5ea208
add jump to def and type on hover for top level
2024-12-07 13:25:29 -08:00
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
3227bffaa6
Day6
2024-12-06 09:37:20 -08:00
3aa127c42b
turn three crashes into proper errors
2024-12-05 17:10:05 -08:00
52bbb5aa65
Day2, prelude additions/fixes, better fc on do block errors
2024-12-02 10:58:10 -08:00
d2bbf681ea
destructuring lets and arrows
2024-11-30 15:20:51 -08:00
d5a4d6253f
port aoc2023 day4
...
more stuff in Prelude, typechecking fixes, solving autos
2024-11-30 10:27:06 -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
07cbeec6cc
add quantity to parser
2024-11-25 21:17:56 -08:00
affae1fecf
Allow where defs to refer to themselves
2024-11-20 19:51:25 -08:00
1a9d44434c
first pass at where clauses
2024-11-19 22:40:52 -08:00
c665310653
Address issues with unify's case tree in idris
...
Clean up some stuff in prelude
Add parser for where
2024-11-19 21:35:50 -08:00
fac34e729c
add sugar for typeclass
2024-11-16 21:08:01 -08:00
454dccaa72
add sugar for if/then/else
2024-11-16 15:49:27 -08:00
b185065fb0
Port Prettier.idr to newt
2024-11-16 12:01:48 -08:00
9767d92952
more tweaks to pretty printing.
2024-11-15 20:16:02 -08:00
9faee86886
tweaks to output, fix scope issue in pprint
2024-11-15 16:49:31 -08:00
60abe813dc
better names on solutions
2024-11-14 16:28:40 -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
69693a4995
defer skolem issue from unsolved meta application
2024-11-09 14:50:50 -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
375c16f4fd
Search includes scope, tweak to code formatting
2024-11-06 20:53:44 -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
56e005d2dc
misc cleanup
2024-10-30 21:23:17 -07:00
b844d0b676
parsing and desugaring of do blocks. (Some inference issues remain.)
2024-10-29 21:05:47 -07:00
0fb5b08598
Typeclass works for Monad
2024-10-29 16:36:41 -07:00
16e6325df3
check for implicit
2024-10-28 21:37:02 -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
44dd074a79
Finding simple autos after elab
2024-10-26 20:41:35 -07:00
e1ef6b5ee5
Preliminary work on autos
2024-10-25 21:07:12 -07:00
c7593e831e
Get AOC day1 working
...
- Fixes to codegen for literal cases.
- Fix parsing of string literals
- Work around stack overflow in Prettier
2024-10-22 20:30:20 -07:00
9148852eb5
character lits, initial work on literal case trees
2024-10-21 22:53:05 -07:00
41a7563ad5
Variant on Tree, try not to expand too much
2024-10-17 21:55:50 -07:00
50ee14fc09
Get Tree.newt working
2024-10-16 22:39:44 -07:00
1695815fe3
comment out issue in Zoo4eg
2024-10-16 22:03:09 -07:00