Commit graph

511 commits

Author SHA1 Message Date
Richard Feldman
9f9ce327d4 Lazily validate that input bytes are valid UTF-8 2020-07-27 01:10:04 -04:00
Chad Stearns
59b30ad20f Resolve conflicts with remote 2020-07-26 21:41:38 -04:00
Chad Stearns
68b13d29fd List prepend implementation with tests, and a few small code clarity changes to list_push implementation 2020-07-25 19:22:01 -04:00
Chad Stearns
759f1289d6 Rename List.push to List.append 2020-07-25 03:43:52 -04:00
Chad Stearns
0b078783fd Renamed List.append to List.concat 2020-07-24 01:12:19 -04:00
Richard Feldman
dd6973d75e Use builtin defs in modules 2020-07-22 19:34:34 -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
d779e68773 parse default optional expressions in pattern matches 2020-07-22 19:33:36 -04:00
Richard Feldman
28a2f9656e Constrain 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
Chadtech
36a259b56b
Merge branch 'trunk' into list-append 2020-07-18 21:30:51 -04:00
Richard Feldman
2925706570
Merge branch 'trunk' into fix-quicksort 2020-07-16 19:46:19 -04:00
Folkert
331a8ed5eb error message for record update and missing module 2020-07-14 23:37:19 +02:00
Richard Feldman
5fe30be9f5 s/negate/neg 2020-07-12 22:53:03 -04:00
Richard Feldman
b8a9a3ef42 Account for return types being different in the uniqueness case 2020-07-12 22:53:03 -04:00
Richard Feldman
814ca7c7cc Format some comments 2020-07-12 22:53:03 -04:00
Chad Stearns
f807947ce4 Merging in remote, implemented basics of List append in many modules 2020-07-12 14:35:22 -04:00
Folkert
362ff74b82 clean up annotation canonicalization 2020-07-12 00:36:11 +02:00
Richard Feldman
0536d9f0c4 Share more variables between builtins 2020-07-10 00:06:45 -04:00
Folkert
732496231c expand some comments 2020-07-08 14:30:48 +02:00
Richard Feldman
7938a31ce3 Re-add List.reverse (missed in merge) 2020-07-07 22:29:18 -04:00
Richard Feldman
2337d6638e Temporarily disable can_inline 2020-07-07 21:11:56 -04:00
Richard Feldman
1cd49689c2 Merge remote-tracking branch 'origin/trunk' into low-level-ops 2020-07-07 21:09:50 -04:00
Richard Feldman
e78064c037
Merge branch 'trunk' into number-error-reporting 2020-07-07 18:48:39 -04:00
Folkert
4aa66b2585 update comment 2020-07-07 22:56:46 +02:00
Folkert
edb79b8fce pretty error messages for floats 2020-07-07 22:53:54 +02:00
Folkert
9d67b11c0d pretty error messages for integers 2020-07-07 22:10:23 +02:00
Folkert
308a24b080 Revert "accept a newline and body when patterns are different"
This reverts commit a0d39ff10f.
2020-07-07 20:17:59 +02:00
Folkert
58dfeba043 accept a newline and body when patterns are different 2020-07-07 17:26:45 +02:00
Folkert
e595c14fae wip 2020-07-06 20:38:10 +02:00
Folkert
a0d39ff10f accept a newline and body when patterns are different 2020-07-05 18:34:28 +02:00
Folkert
b7d689226c cover all parsed patterns with an error message
but, some invalid patterns are not parsed as expected. See https://github.com/rtfeldman/roc/issues/399
2020-07-04 20:39:49 +02:00
Folkert
0c7a4179aa report malformed int and float patterns 2020-07-04 20:29:37 +02:00
Richard Feldman
8665f23a29 Inline LetRec and LetNonRec 2020-07-04 10:57:20 -04:00
Richard Feldman
319da4141e Fix some inlining logic 2020-07-04 10:35:37 -04:00
Richard Feldman
426531cf59 Add a TODO to can_inline 2020-07-04 10:23:14 -04:00
Richard Feldman
1926adb543 Fix inlining and test 2020-07-04 10:23:01 -04:00
Richard Feldman
3e5627689f Add basic inline function and a failing test 2020-07-04 10:22:55 -04:00
Richard Feldman
6a38e8b2de Merge remote-tracking branch 'origin/trunk' into inline-builtins 2020-07-03 23:38:15 -04:00
Richard Feldman
fe63ad394e Add a TODO to can_inline 2020-07-03 23:22:39 -04:00
Richard Feldman
053db8449a Fix inlining and test 2020-07-03 23:16:32 -04:00
Richard Feldman
a1870457bf Add basic inline function and a failing test 2020-07-03 21:36:51 -04:00
Folkert
98ac988e99 use symbols instead of identifiers; prevents cloning 2020-07-03 19:23:58 +02:00
Folkert
667233a00d report error for invalid alias argument patterns 2020-07-03 16:54:28 +02:00
Folkert
0cfb16c7d5 implement canonicalization error when signature pattern does not match definition pattern. 2020-07-02 23:24:10 +02:00
Richard Feldman
d744567f76 Add can builtins for List.push and List.repeat 2020-06-29 22:25:58 -04:00
Richard Feldman
8c96d12661 Merge trunk 2020-06-29 22:10:46 -04:00
Richard Feldman
81db9de8b5
Merge branch 'trunk' into container-rule-patterns 2020-06-28 16:21:34 -04:00