Chad Stearns
4b663a93c0
Switched many tests
2020-07-03 15:14:30 -04:00
Chad Stearns
9147661e02
More comments for List.reverse
2020-07-03 15:14:21 -04:00
Chad Stearns
d66cf913a9
Refactored the phi2 away
2020-07-03 14:20:34 -04: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
Folkert
5483ec819f
fix infinite unfolding of recursive tag union
2020-06-30 13:54:16 +02: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
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
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
Folkert
055b01c463
rewrite uniqueness logic
2020-06-24 23:06:34 +02:00
Richard Feldman
93a2cd994d
Merge branch 'trunk' into list-push
2020-06-23 21:19:08 -04:00
Folkert
41ad8f2952
revise Map and cleanup
2020-06-23 21:16:29 +02:00
Folkert
b88dfcb537
revise Set
2020-06-23 15:36:02 +02:00
Folkert
6f1639959a
use let_tvars for the Num, Int, Float, Bool
2020-06-23 15:08:23 +02:00
Folkert
c0c4f4c74b
polish list signatures
2020-06-23 14:36:48 +02:00
Folkert
0696c5aa09
polish list signatures
2020-06-23 14:34:47 +02:00
Richard Feldman
3691152d20
Introduce the let_tvars! macro
2020-06-22 21:40:00 -04:00
Richard Feldman
0b106614f9
wip
2020-06-22 21:29:18 -04:00
Folkert
af33e26811
fix repeat
2020-06-23 00:02:36 +02:00
Folkert
2a7bf2ae66
fix map
2020-06-22 23:48:37 +02:00
Folkert
0fbac382d0
improve uniqueness signatures
2020-06-22 23:28:23 +02:00
Folkert
7de691b511
clarify list uniqueness signatures
2020-06-22 20:37:28 +02:00