Folkert
744b8ce32b
fix todos regarding InvalidCycle
2020-07-03 15:42:24 +02:00
Chad Stearns
fb7cbfdce4
LIST_REVERSE works, so long as the list is made up of ints equal to 1
2020-07-02 22:49:12 -04:00
Chad Stearns
7bd7e697b0
LIST_REVERSE works, so long as the list is made up of ints equal to 1
2020-07-02 22:39:58 -04:00
Chad Stearns
d8a8741aed
Merge branch 'trunk' of github.com:rtfeldman/roc into list-reverse
2020-07-02 21:33:24 -04:00
Chad Stearns
f409e1827b
Added LIST_REVERSE symbol and an untested implementation in build.rs
2020-07-02 21:33:15 -04:00
Richard Feldman
909b273083
Merge branch 'trunk' into annotation-def-match
2020-07-02 19:10:50 -04:00
Folkert
53c5297aac
cleanup comment
2020-07-02 23:26:24 +02:00
Folkert
0cfb16c7d5
implement canonicalization error when signature pattern does not match definition pattern.
2020-07-02 23:24:10 +02:00
Folkert
5c81b46d1c
remove clone
2020-07-02 23:22:55 +02:00
Folkert
a3c1788d48
Allelujah! Don't Trust! Assert!
2020-06-30 15:15:58 +02:00
Folkert
b89dc60d7e
cleanup comment
2020-06-30 15:09:15 +02:00
Folkert
36e6950daa
ensure VarId always encodes root var
...
otherwise variables with the same root, but different values would be different once imported in another module
2020-06-30 15:03:30 +02:00
Folkert
c589be43c6
fix triple (or more) mutualy recursive type aliases
2020-06-30 14:25:47 +02:00
Richard Feldman
1c16d0e776
Combine some imports
2020-06-30 07:55:25 -04:00
Folkert
5483ec819f
fix infinite unfolding of recursive tag union
2020-06-30 13:54:16 +02:00
Richard Feldman
f5bcfd4dc4
use std::collections::HashMap
2020-06-30 07:54:13 -04:00
Richard Feldman
d744567f76
Add can builtins for List.push and List.repeat
2020-06-29 22:25:58 -04:00
Richard Feldman
d7203be7ad
Use with_larger_debug_stack on gen_quicksort
2020-06-29 22:21:21 -04:00
Richard Feldman
38ab29ca3e
Fix test module names
2020-06-29 22:18:28 -04:00
Richard Feldman
010a03926e
Drop some duplicate type defs
2020-06-29 22:13:05 -04:00
Richard Feldman
dc4807bfcb
Add low-level ops for ListPush, ListRepeat
2020-06-29 22:10:46 -04:00
Richard Feldman
8c96d12661
Merge trunk
2020-06-29 22:10:46 -04:00
Folkert
b4480e212a
fix uniqueness attribute on nested recursive aliases
2020-06-29 17:08:39 +02:00
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