Commit graph

1008 commits

Author SHA1 Message Date
Richard Feldman
40f4cd9835 cargo fmt 2020-07-22 19:37:58 -04:00
Richard Feldman
dd6973d75e Use builtin defs in modules 2020-07-22 19:34:34 -04:00
Richard Feldman
2465c204e3 Restore CLI 2020-07-22 19:33:36 -04:00
Richard Feldman
a58ef99518 Count default exprs as having used things 2020-07-22 19:33:36 -04:00
Richard Feldman
edd1a42bec Reproduce unused optional fields bug 2020-07-22 19:33:36 -04:00
Folkert
02675d613b improved error messages for function definitions 2020-07-22 19:33:36 -04:00
Folkert
d01f74330e add reporting error message tests 2020-07-22 19:33:36 -04:00
Folkert
fa893d58eb add usage test 2020-07-22 19:33:36 -04:00
Folkert
3fdcdf0da9 remove some dead code 2020-07-22 19:33:36 -04:00
Folkert
ee42df0e7d add optional defaults to usage analysis 2020-07-22 19:33:36 -04:00
Folkert
7bf545a757 constraint default unique 2020-07-22 19:33:36 -04:00
Folkert
1f55355ee0 constrain the default 2020-07-22 19:33:36 -04:00
Folkert
d779e68773 parse default optional expressions in pattern matches 2020-07-22 19:33:36 -04:00
Richard Feldman
6d40de7430 Revise List docs some more 2020-07-22 19:33:36 -04:00
Richard Feldman
743768d82a Change the type of List.mapOrCancel 2020-07-22 19:33:36 -04:00
Richard Feldman
12fb1ed7e9 Update List docs some more 2020-07-22 19:33:36 -04:00
Richard Feldman
190b9790ca Add initial List.roc 2020-07-22 19:33:36 -04:00
Richard Feldman
e8a50a0e4c Update some Num docs 2020-07-22 19:33:36 -04:00
Richard Feldman
ece8480195 Drop obsolete Arr.roc 2020-07-22 19:33:36 -04:00
Richard Feldman
bcb67b0dea Appease clippy 2020-07-22 19:33:36 -04:00
Richard Feldman
fddc7f31db Fix an annotation formatting regression 2020-07-22 19:33:36 -04:00
Richard Feldman
62290b5cc2 Reporting for optional fields 2020-07-22 19:33:36 -04:00
Richard Feldman
2f50c0494b Monomorphize optional fields 2020-07-22 19:33:36 -04:00
Richard Feldman
28a2f9656e Constrain optional fields 2020-07-22 19:33:36 -04:00
Richard Feldman
872f4b3541 Add some solving tests for optional fields 2020-07-22 19:33:36 -04:00
Richard Feldman
fdceedda00 Fix unifying optional fields 2020-07-22 19:33:36 -04:00
Richard Feldman
49e66491ad Fix a parse test 2020-07-22 19:33:36 -04:00
Richard Feldman
4e2cd3fefc Solve optional fields 2020-07-22 19:33:36 -04:00
Richard Feldman
a11b7ab4f5 Constrain uniquness for optional fields 2020-07-22 19:33:36 -04:00
Richard Feldman
71ef37923a Constrain optional record fields 2020-07-22 19:33:36 -04:00
Richard Feldman
b6f8143d4c Canonicalize optional record fields 2020-07-22 19:33:36 -04:00
Richard Feldman
1229b0ea5f Unify optional fields 2020-07-22 19:33:36 -04:00
Richard Feldman
43bca05cdb Change guard to DestructType 2020-07-22 19:33:36 -04:00
Richard Feldman
c9883be8a2 Introduce optional record fields 2020-07-22 19:33:36 -04: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
Chad Stearns
6160a2b2f1 Moved first list empty case closer to where it is used 2020-07-18 22:14: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
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
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