Folkert
e5ec7cbdcf
clippy
2020-06-29 00:18:50 +02:00
Folkert
3fc2323891
fix recursion bug
...
previously, `Cons 1 (Cons {} Nil)` would get inferred as ConsList Int, because only the outer layer of a tag union was checked with the recursive tag union. Now this is done continually.
2020-06-29 00:18:50 +02:00
Folkert
bd086e5c9b
fix rank issue for uniqueness
2020-06-29 00:18:50 +02:00
Folkert
e4384753fb
add comments about alias uvar instantiation
2020-06-29 00:18:50 +02:00
Richard Feldman
81db9de8b5
Merge branch 'trunk' into container-rule-patterns
2020-06-28 16:21:34 -04:00
Richard Feldman
17dabdc8b7
Clippy
2020-06-28 15:39:13 -04:00
Richard Feldman
85f69b5927
Allow self-qualified lookups in modules
2020-06-28 15:37:44 -04:00
Richard Feldman
95fa81b414
Add failing test for self-qualified modules
2020-06-28 15:37:44 -04:00
Richard Feldman
83c3f7fc68
Update Num docs to use Len
2020-06-28 15:37:44 -04:00
Folkert
55e1e86dc2
cleanup
2020-06-27 23:56:53 +02:00
Folkert
229d98483c
add docs
2020-06-27 23:27:00 +02:00
Richard Feldman
baa3debae2
Update cyclic alias test
2020-06-27 16:49:48 -04:00
Chad Stearns
2f440ecb6a
Removed incorrect comment
2020-06-27 16:12:59 -04:00
Chad Stearns
20b0e986ad
Merge branch 'list-push' of github.com:rtfeldman/roc into list-push
2020-06-27 15:12:01 -04:00
Chad Stearns
4e039125bf
Make test for List.pushing bools just to make sure it works with different types
2020-06-27 15:11:18 -04:00
Chad Stearns
f72cf65f35
Use old size when copying memory in list_push
2020-06-27 15:10:55 -04:00
Folkert
41621bc509
fix test outputs
...
in some cases for aliases the outputs are not entirely correct yet. That's future work
2020-06-27 21:01:51 +02:00
Folkert
79f01e0604
loads of things
2020-06-27 16:20:30 +02:00
Folkert
ac18da302c
add more tests
2020-06-26 13:59:32 +02:00
Richard Feldman
55045e1cea
Fix some tests and docs
2020-06-25 22:11:46 -04:00
Richard Feldman
22cc618436
Split gen_builtins into gen_num and gen_list
2020-06-25 22:02:25 -04:00
Richard Feldman
714a81f40a
Check denominator, not numerator
2020-06-25 22:02:11 -04:00
Richard Feldman
44477f98e9
Fix Num.sqrt, div, mod, and rem
2020-06-25 21:47:02 -04:00
Richard Feldman
ee52d52047
Fix List.get types
2020-06-25 21:22:32 -04:00
Folkert
3901cedf62
switch some variables around in test output
2020-06-26 01:14:17 +02:00
Folkert
e5997c4047
fix mutual recursive types
...
I'll write a bit more about this in the PR message
2020-06-26 01:03:55 +02:00
Richard Feldman
ae58ef914d
Sort fields in one pass, and drop 0-sized fields
2020-06-25 01:49:59 -04:00
Richard Feldman
487c1e3b75
Derive more things for UnionVariant
2020-06-25 01:26:07 -04:00
Richard Feldman
ec953e9a15
Drop zero-sized record fields
2020-06-25 01:25:52 -04:00
Richard Feldman
46c43da1de
Improve debug output
2020-06-25 01:25:33 -04:00
Richard Feldman
9faf47e5cd
Fix an incomplete comment
2020-06-25 01:25:11 -04:00
Richard Feldman
72bdeb6e3c
Avoid a clone
2020-06-25 00:41:33 -04:00
Richard Feldman
e0fc71526e
Clean up some debugging info
2020-06-25 00:28:01 -04:00
Richard Feldman
72d865b753
Add a derive(Debug)
2020-06-25 00:15:02 -04:00
Richard Feldman
64482f8bfe
Fix some indentation
2020-06-25 00:14:53 -04:00
Richard Feldman
0550af17d2
Fix some empty list edge cases
2020-06-25 00:02:52 -04:00
Richard Feldman
5cec577427
Fix return type of List.first
2020-06-24 23:52:54 -04:00
Richard Feldman
2332650785
Add cfg(debug_assertions) where appropriate
2020-06-24 23:15:12 -04:00
Richard Feldman
c5fbb05ce9
Fix an error message
2020-06-24 23:15:03 -04:00
Richard Feldman
27c19ad868
Reproduce List.first bug on wildcard empty list
2020-06-24 23:14:54 -04:00
Richard Feldman
0f36255f83
Fix List.first types
2020-06-24 23:08:25 -04:00
Richard Feldman
b3dfbeeec8
Fix some missing unary Num operation types
2020-06-24 21:56:56 -04:00
Folkert
055b01c463
rewrite uniqueness logic
2020-06-24 23:06:34 +02:00
Richard Feldman
35446348a3
Fix some vars
2020-06-23 23:50:20 -04:00
Richard Feldman
faa5f281fb
Fix a memory access issue
2020-06-23 23:44:20 -04:00
Richard Feldman
14c31d55ee
Fix List.set monomorphization
2020-06-23 23:42:12 -04:00
Richard Feldman
08be131eef
Stop using List.getUnsafe in gen_builtins
2020-06-23 22:20:32 -04:00
Richard Feldman
93a2cd994d
Merge branch 'trunk' into list-push
2020-06-23 21:19:08 -04:00
Richard Feldman
4fdb39ee71
Delete some unused helpers
2020-06-23 21:17:51 -04:00
Richard Feldman
f350c0ed52
Fix List.len monomorphization
2020-06-23 21:14:23 -04:00