Commit graph

3674 commits

Author SHA1 Message Date
Folkert
e3293f1ba9 remove list sum and product lowlevel ops 2021-03-30 22:55:27 +02:00
Eric Henry
eca753f6a4 helper function, typo fix, remove debug code 2021-03-30 16:51:57 -04:00
Folkert
5cfc9c1d85 implement List.sum and List.product in roc can AST 2021-03-30 22:19:37 +02:00
Folkert
0bd05f3ecf remove second macro def 2021-03-30 21:23:06 +02:00
Lucas
15203e3584
Merge branch 'trunk' into applied_tag_functions 2021-03-30 11:34:24 -04:00
Eric Henry
7045737669 sortWith boilerplate done 2021-03-30 11:05:31 -04:00
Eric Henry
739b859a50 pattern in parens test cases 2021-03-30 10:23:50 -04:00
Eric Correia
c827b52aba Merge branch 'trunk' of github.com:rtfeldman/roc into type-start-parse-error 2021-03-30 08:38:34 -04:00
Folkert de Vries
cebf5db894
Merge branch 'trunk' into rc-missed-opt 2021-03-30 14:13:24 +02:00
Folkert
1ac7ed1bfd fix missed RC optimization opportunity 2021-03-30 14:09:46 +02:00
Chadtech
b100efa511 Set type in Set.roc 2021-03-30 01:30:47 -04:00
Chadtech
ce6bdfc757 If the docs encounter a break in the comments, we should forget about the accumulated docs until then, since they did not pertain to what we were building docs for 2021-03-30 00:54:04 -04:00
Chadtech
62b4ce0598 Put List private tag list 2021-03-30 00:53:20 -04:00
Chadtech
1df89ccbbe Aliases now rendered in docs 2021-03-30 00:52:47 -04:00
Folkert
eba295033d clippy 2021-03-29 23:07:21 +02:00
Folkert
d718e21fd3 add List.range 2021-03-29 23:00:49 +02:00
Folkert
f7f9ec7de6 fix test 2021-03-29 21:17:14 +02:00
Folkert
1dd8c25e12 implement walk until 2021-03-29 20:54:38 +02:00
Folkert
1302ee296f refactor list walking 2021-03-29 16:32:43 +02:00
Folkert
9c56fbc6d1 add flag to not fail on problems (so we can see runtime errors in action) 2021-03-29 16:07:30 +02:00
Folkert
bbeb89d027 fix mono test 2021-03-29 15:40:03 +02:00
Folkert
2f087ae7b4 add missing #[test] 2021-03-29 15:39:19 +02:00
Folkert
5babeb9d5a remove runtime_errors field 2021-03-29 15:38:52 +02:00
Folkert
07d9fb3cc3 Merge remote-tracking branch 'origin/trunk' into panic-on-type-error 2021-03-29 15:11:24 +02:00
rvcas
e4babd4445 chore(unify): move re-used logic into a helper function for TagUnion and Func 2021-03-28 23:42:29 -04:00
Lucas
7013ad49f9
Merge branch 'trunk' into applied_tag_functions 2021-03-28 21:56:29 -04:00
Ju Liu
4b8a9a5299 Add more tests 2021-03-28 23:53:35 +01:00
rvcas
a0b9d8c5eb chore(mono/layout): remove useless import 2021-03-28 17:06:40 -04:00
Lucas
58b6a333d6
Merge branch 'trunk' into applied_tag_functions 2021-03-28 17:01:28 -04:00
rvcas
7628904019 feat(mono/ir): implement applied tag functions 2021-03-28 17:00:50 -04:00
rvcas
48b1b62aaa tests(test_gen): add get_tags tests for applied tag functions 2021-03-28 17:00:09 -04:00
Richard Feldman
51e7720658
Merge branch 'trunk' into add-num-log 2021-03-28 12:43:51 -04:00
Richard Feldman
706aaa26d3
Merge pull request #1122 from rtfeldman/num-sqrt-bugfix
Fix bug in Num.sqrt
2021-03-28 12:42:44 -04:00
Ju Liu
8ccdeefdf2 Fix bug in Num.sqrt 2021-03-28 17:23:47 +01:00
Ju Liu
c48f415058 fix small typo 2021-03-28 17:13:12 +01:00
Ju Liu
cd59af1f9a Rename error to LogNeedsPositive 2021-03-28 17:09:42 +01:00
Ju Liu
0190bbb06d Add test for Num.log 2021-03-28 15:14:43 +01:00
Ju Liu
928249df2a Add Num.log and wire it up 2021-03-28 15:02:45 +01:00
rvcas
6e1f42f990 Merge branch 'trunk' into applied_tag_functions 2021-03-27 18:00:46 -04:00
rvcas
fe9e9af576 tests(test_gen): add tests for mono 2021-03-27 18:00:36 -04:00
Peter Fields
3b07a7885c format files 2021-03-27 20:50:21 +00:00
Folkert
5f72983c82 add tests 2021-03-27 21:28:56 +01:00
Peter Fields
fed470b316 add list-product builtin function 2021-03-27 20:15:16 +00:00
Folkert
5a8eb2ab39 on specialize failure, call runtime error function 2021-03-27 19:55:59 +01:00
Eric Henry
339a555b83 initial error reporting 2021-03-27 09:45:31 -04:00
Folkert
3b458309c6 WIP emit runtime error functions on specialization failure 2021-03-26 21:57:50 +01:00
Folkert
d396477fb6 fix typo 2021-03-26 21:13:51 +01:00
Richard Feldman
3f76c6314c
Merge branch 'trunk' into ir-cleanup 2021-03-26 12:59:32 -04:00
Richard Feldman
9f73c576f3 macro_use must be in crate root 2021-03-26 09:46:33 -04:00
Richard Feldman
6dc5aa2901 Allow dead code on a couple of helpers 2021-03-26 09:16:23 -04:00