Commit Graph

733 Commits

Author SHA1 Message Date
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
Richard Feldman
44b19d3174
Merge branch 'trunk' into list-push 2020-06-21 22:23:24 -04:00
Chad Stearns
af34f248ea move from i32 to i64 2020-06-21 18:20:45 -04:00
Chad Stearns
830394eadf Comply with clippy 2020-06-21 17:24:14 -04:00
Chad Stearns
16dd9bd8d6 Comply with clippy 2020-06-21 14:39:17 -04:00
Chad Stearns
0eee0cc07b A comment about the output list length 2020-06-21 14:14:26 -04:00
Chad Stearns
9376b4b988 empty_list helper 2020-06-21 14:03:04 -04:00
Chad Stearns
10aa44e12b More comments 2020-06-21 14:02:52 -04:00
Chad Stearns
3af1632ede Changed some commented out type signatures from List a to List elem 2020-06-21 13:30:49 -04:00
Chad Stearns
7125af2493 Switched from one list foldr type to the other in the test 2020-06-21 13:24:45 -04:00
Chad Stearns
197dc01ad8 Got rid of test for negative amount of repeats. We will worry about that later 2020-06-21 13:24:21 -04:00
Chad Stearns
ca411b11a3 Switched all i32 to i64 in gen builtins 2020-06-21 13:23:59 -04:00
Chad Stearns
5898fa0905 Cleaned up list_push 2020-06-21 04:37:58 -04:00
Chad Stearns
e4eeff5bd0 List repeat works for all test cases except one with a negative number repeats param, and avoids malloc in the case that the number of repeats is not more than 0 2020-06-21 00:55:53 -04:00
Chad Stearns
6485b039c7 List repeats code gen works.. so long as its 5 2020-06-20 15:49:58 -04:00