Commit graph

1349 commits

Author SHA1 Message Date
Folkert
f8e04619b8 remove UnsupportedPattern variant in mono patterns 2020-12-29 00:48:56 +01:00
Folkert
fefb1f3739 error on non-exhaustive pattern in let 2020-12-28 23:22:54 +01:00
Jared Ramirez
48f964adf4 Add percision variable in fp/integer eq constraints 2020-12-28 16:22:34 -06:00
Folkert
794f8c4d41 remove Shadowed variant from mono pattern 2020-12-28 23:14:04 +01:00
Folkert
4cdde12823 add tests 2020-12-28 22:34:27 +01:00
Jared Ramirez
5e332cbad9 [WIP] F32 gen 2020-12-28 14:50:01 -06:00
Jared Ramirez
9b1769b3fb Add basic tests for number gen 2020-12-28 14:50:01 -06:00
Richard Feldman
b1bf03e7a0
Merge pull request #830 from rtfeldman/empty-tag-union
make empty tag union compile
2020-12-26 23:41:44 -05:00
Folkert
29e726591f make empty tag union compile 2020-12-27 01:01:18 +01:00
Folkert
5418dd8e76 clippy 2020-12-26 00:52:37 +01:00
Folkert
125146aac7 Merge remote-tracking branch 'origin/trunk' into bughunt 2020-12-26 00:51:22 +01:00
Folkert
59d6cdba04 make Num.neg raise on overflow 2020-12-26 00:50:09 +01:00
Folkert
f0ce8006d2 factor out basic_type_from_builtin 2020-12-26 00:48:40 +01:00
Folkert
51cf54e367 raise exception on Num.abs overflow 2020-12-25 21:26:29 +01:00
Folkert
2bcaf3921f fix #333: bug with symbol in if condition 2020-12-25 20:14:25 +01:00
Richard Feldman
a656778968 Merge remote-tracking branch 'origin/trunk' into overflow_on_mul 2020-12-23 15:37:55 -05:00
Celso Bonutti Filho
e7b2485a15 fix: ambiguous Num.subChecked test 2020-12-23 13:44:28 -03:00
Celso Bonutti Filho
c98d554328 test: adds tests for mulCheck and mulWrap 2020-12-23 13:43:34 -03:00
Celso Bonutti Filho
f3bd5368f0 feat: adds Num.mulWrap and Num.mulChecked 2020-12-23 13:42:18 -03:00
rvcas
eda5b72060 Merge branch 'trunk' into new_num_layer 2020-12-23 08:24:19 -05:00
Celso Bonutti Filho
cfbc4d1c54 feat: throws exception on multiplication overflow 2020-12-23 10:17:16 -03:00
Celso Bonutti Filho
2608be3df9 adds missing test annotation for float_sub_checked 2020-12-22 23:35:25 -03:00
Celso Bonutti Filho
fe588c120c adds Num.subChecked 2020-12-22 23:27:16 -03:00
Celso Bonutti Filho
5d2abc2bd2 throws subtraction overflow error for floats 2020-12-22 23:26:50 -03:00
Celso Bonutti Filho
313bc2ab86 adds tests for Num.subWrap and sub overflow 2020-12-22 22:18:00 -03:00
Celso Bonutti Filho
176cdd0274 adds Num.subWrap 2020-12-22 22:17:45 -03:00
Celso Bonutti Filho
c6b258c50c throws error when Num.sub overflows 2020-12-22 22:17:18 -03:00
Folkert
caaf8e76c1 reintroduce multiple uniqueness vars in numbers 2020-12-22 20:13:54 +01:00
Folkert
232e1aa1ee Merge branch 'new_num_layer' of github.com:rtfeldman/roc into new_num_layer 2020-12-22 19:42:29 +01:00
Folkert
34ba2388f3 run List.set out of bounds only for non-unique type inference 2020-12-22 19:34:04 +01:00
rvcas
aa4b376134 add new layer to the Num types 2020-12-22 09:05:19 -05:00
Celso Bonutti Filho
51a302957f adds List.last 2020-12-21 19:44:24 -03:00
rvcas
c9308c0662 add new layer to the Num types 2020-12-21 09:56:11 -05:00
Folkert de Vries
2972437fce
Merge branch 'trunk' into fixing-exceptions 2020-12-21 02:30:39 +01:00
Folkert
725d52f7c6 make exceptions work on linux again 2020-12-21 02:12:30 +01:00
Celso Bonutti Filho
0a24f3b4b4 adds Num.bitwiseAnd 2020-12-20 19:55:10 -03:00
Richard Feldman
46a84fcbca
Merge pull request #802 from rtfeldman/large_enum_comment
Replaced large_enum_variant explanation with link to issue #800
2020-12-14 22:08:05 -05:00
Folkert
434c6504df increment result of List.get 2020-12-14 21:30:55 +01:00
Anton-4
b085469602 Replaced large_enum_variant explanation with link to issue #800 2020-12-14 16:09:16 +01:00
Folkert de Vries
3d9b82e35e
Merge branch 'trunk' into more-tea 2020-12-14 02:30:04 +01:00
Richard Feldman
86c14d5c55
Merge pull request #797 from rtfeldman/better-top-level-thunks
TEA-style applications!
2020-12-13 18:39:30 -05:00
Folkert
a5e93cc21b pass arguments (e.g. Msg, Model) by-reference, so the host does not need to know their size 2020-12-13 22:08:12 +01:00
Folkert
a67a750fdc make the example loop a couple of times 2020-12-13 20:05:00 +01:00
Folkert
f00bd9ba01 fix refcount bug
closures were not incremented, but were decremented. This lead to memory corruption
2020-12-13 19:57:51 +01:00
Folkert
30e3f3bd25 clarify len to be the number of list elements 2020-12-13 19:49:49 +01:00
Chadtech
cd6e6e6e4f
Merge branch 'trunk' into rename-map-to-dict 2020-12-11 23:39:10 -05:00
Chadtech
745094a94c Correct tag alias Dict to be RedBlackTree 2020-12-11 21:11:31 -05:00
Chadtech
61728fd1d1 Merge branch 'trunk' of github.com:rtfeldman/roc into rename-map-to-dict 2020-12-11 20:21:40 -05:00
Folkert
462f6ac8e5 use C calling convention (approximation) when calling foreign functions 2020-12-12 01:30:39 +01:00
Folkert
539f173472 set correct closure tag_id 2020-12-11 20:25:15 +01:00