Commit graph

7453 commits

Author SHA1 Message Date
Richard Feldman
81a1111cae Reproduce unused optional fields bug 2020-07-20 21:44:42 -04:00
Folkert
e93c04a8ce improved error messages for function definitions 2020-07-20 21:38:21 +02:00
Folkert
1d2251b064 add reporting error message tests 2020-07-20 16:05:53 +02:00
Folkert
eed8ff38e6 add usage test 2020-07-20 14:06:31 +02:00
Folkert
8eb287dfab remove some dead code 2020-07-20 14:02:36 +02:00
Folkert
c9b84f92e6 add optional defaults to usage analysis 2020-07-20 14:02:10 +02:00
Folkert
ae966c8933 constraint default unique 2020-07-20 13:44:45 +02:00
Folkert
36574e6ff7 constrain the default 2020-07-20 13:28:20 +02:00
Folkert
29c3eebace parse default optional expressions in pattern matches 2020-07-20 00:52:16 +02:00
Richard Feldman
1ecb795b96 Revert "Fix list length calculation"
This reverts commit 3e61b6d165.
2020-07-18 23:41:15 -04:00
Richard Feldman
3e61b6d165 Fix list length calculation 2020-07-18 23:02:41 -04:00
Richard Feldman
04123c973a Appease clippy 2020-07-18 22:25:29 -04:00
Richard Feldman
3eea2c934e Fix an annotation formatting regression 2020-07-18 22:17:41 -04:00
Chad Stearns
6160a2b2f1 Moved first list empty case closer to where it is used 2020-07-18 22:14:09 -04:00
Richard Feldman
8644433158 Reporting for optional fields 2020-07-18 22:13:20 -04:00
Richard Feldman
588410395e Monomorphize optional fields 2020-07-18 22:13:09 -04:00
Chad Stearns
cb92b477ea Reverted fancy closure organization in List.append 2020-07-18 21:50:03 -04:00
Chadtech
36a259b56b
Merge branch 'trunk' into list-append 2020-07-18 21:30:51 -04:00
Chad Stearns
5b80bc0ae3 Use correct error messages for unreachable layouts 2020-07-18 21:30:24 -04:00
Chad Stearns
bc1c676be4 Fix english errors in documentation 2020-07-18 21:30:07 -04:00
Chad Stearns
04198c8895 Revert use of closure for if_first_list_is_empty due to memory problem 2020-07-18 21:24:19 -04:00
Chad Stearns
dc6f0daeef Organized list append code into named closures 2020-07-18 21:06:00 -04:00
Chad Stearns
9881c91e1f Pull some shared variables higher up 2020-07-18 17:37:19 -04:00
Richard Feldman
7330e82f75 Constrain optional fields 2020-07-18 14:51:18 -04:00
Chad Stearns
a37f6d670b Re-implement loop on second input list to List.append, except use an offset pointer instead of doing second_index + first_list_len arithemtic, which is more performant 2020-07-18 14:43:06 -04:00
Chad Stearns
74bd85afaa Remove phi1 helper 2020-07-18 14:42:11 -04:00
Richard Feldman
1bdfe578bd Add some solving tests for optional fields 2020-07-18 14:33:25 -04:00
Richard Feldman
98a8bb8115 Fix unifying optional fields 2020-07-18 14:26:38 -04:00
Richard Feldman
eb3ee8ffa3 Fix a parse test 2020-07-18 13:51:04 -04:00
Richard Feldman
a05ebbf36b Solve optional fields 2020-07-18 13:49:06 -04:00
Richard Feldman
8a2d6004ee Constrain uniquness for optional fields 2020-07-18 13:45:12 -04:00
Richard Feldman
1409421de2 Constrain optional record fields 2020-07-18 13:45:12 -04:00
Richard Feldman
8fc9a450b3 Canonicalize optional record fields 2020-07-18 13:12:13 -04:00
Richard Feldman
ae05f0eb0c Unify optional fields 2020-07-18 12:50:47 -04:00
Richard Feldman
8b53ec15fe Change guard to DestructType 2020-07-18 12:42:04 -04:00
Richard Feldman
85f51ef39d Introduce optional record fields 2020-07-18 12:31:17 -04:00
Richard Feldman
ca6881ab3e Change the type of List.mapOrCancel 2020-07-18 11:12:12 -04:00
Richard Feldman
056c3362b5 Update List docs some more 2020-07-18 11:12:12 -04:00
Richard Feldman
e97b019ad2 Add initial List.roc 2020-07-18 11:12:12 -04:00
Richard Feldman
b544218a47 Update some Num docs 2020-07-18 11:12:12 -04:00
Richard Feldman
6ceacba99f Drop obsolete Arr.roc 2020-07-18 11:12:12 -04:00
Richard Feldman
e37d53aff0
Merge branch 'trunk' into usage-analysis-improvements 2020-07-17 20:37:00 -04:00
Richard Feldman
f39b194d45 Update tests for new pattern regions 2020-07-17 19:49:27 -04:00
Richard Feldman
152e06186b Reserved keywords can't be patterns 2020-07-17 19:49:27 -04:00
Richard Feldman
ef010d4dec Fix parsing bug for malformed when-branches 2020-07-17 19:49:27 -04:00
Richard Feldman
6855c85002 Reproduce parsing bug with bad when-branches 2020-07-17 19:33:27 -04:00
Folkert
d27dcceef2 use index-based approach for Apply 2020-07-18 01:23:35 +02:00
Folkert
25329ad672 get rid of Container 2020-07-18 00:57:27 +02:00
Folkert
ce8bcbb5ed introduce Record and Apply Update and Access 2020-07-18 00:52:22 +02:00
Folkert
6e7ec8cd2c fix other test failures 2020-07-18 00:18:55 +02:00