Commit graph

7974 commits

Author SHA1 Message Date
Folkert
823d4678a8
import Box in box tests 2022-04-10 20:12:59 +02:00
Folkert
6ef443d1b0
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-04-10 19:14:00 +02:00
Folkert
52b58ecdf3
don't write to (temp) file in solve tests 2022-04-10 16:22:35 +02:00
Folkert de Vries
7675e0232b
Merge pull request #2819 from rtfeldman/zero-arg-tag
Drop unused `arguments` field from `ZeroArgumentTag`
2022-04-10 15:18:03 +02:00
Ayaz Hafiz
a102a7497e
Support box/unbox for types that are typically only on the stack
Closes #2786
2022-04-09 16:22:01 -04:00
Richard Feldman
e9acbe983f
Use array over vec for exists_many 2022-04-09 10:09:03 -04:00
Folkert
a4c8ebd55e
fix can tests; qualify imports from num 2022-04-09 14:41:45 +02:00
Folkert
a15ff20eec
give back the subs of the root module (for the repl) 2022-04-09 14:11:50 +02:00
Folkert
9d966d439f
fix solve tests 2022-04-09 12:29:49 +02:00
Folkert
166c949c3b
clippy 2022-04-09 12:24:12 +02:00
Folkert
bdfed2e699
disable usage of cached modules, but do the caching 2022-04-09 12:23:47 +02:00
Folkert
691e8ee068
remove unused alias code 2022-04-09 12:23:30 +02:00
Folkert
c9b29c773f
simplify GeneratedInfo 2022-04-09 12:23:18 +02:00
Folkert
37bb19b032
for now always generate constraints 2022-04-09 12:13:20 +02:00
Folkert
76037de335
ignore test for now 2022-04-09 12:11:11 +02:00
Folkert
4d780ec090
disable use of cached subs temporarily 2022-04-09 12:05:35 +02:00
Folkert
d2756919fd
treat Box.Box as a builtin opaque type 2022-04-09 12:04:12 +02:00
Folkert
a7c87af065
typo 2022-04-09 11:39:57 +02:00
Folkert
c32f851394
explicitly import Box 2022-04-09 11:35:06 +02:00
Folkert
fe77cb3b16
write functions, that can be written in roc, in roc 2022-04-09 11:34:24 +02:00
Richard Feldman
babe281b5d
Merge pull request #2780 from rtfeldman/no-link
Add --no-link flag for more complex linking cases
2022-04-08 23:49:48 -04:00
Richard Feldman
dd56fdb61c
Fix regression with ZeroArgumentTag constraint gen
Turns out it can't share quite that much code with Tag,
because doing so skips the important function-based
constraints.
2022-04-08 21:31:19 -04:00
Richard Feldman
b2ff785a5e
Another clip bites the clip 2022-04-08 19:56:43 -04:00
Folkert de Vries
5dc8c852e9
Merge pull request #2815 from rtfeldman/i/2811
Specialize polymorphic values before binding to pattern
2022-04-08 21:44:11 +02:00
Folkert
e9f7427c67
fix some things in Num 2022-04-08 20:24:17 +02:00
Folkert
4dafe08544
better debug messages 2022-04-08 19:51:20 +02:00
Folkert
ffd4566c29
remove code that saves Subs to a .dat file (it's located elsewhere now) 2022-04-08 19:51:05 +02:00
Folkert
795e24245c
generate all modules on this branch 2022-04-08 19:50:25 +02:00
Folkert
b7eacbf120
some tweaks to the builtin roc code 2022-04-08 19:35:26 +02:00
Folkert
0ccc5f8105
fix module names in builtin roc code 2022-04-08 18:55:41 +02:00
Ayaz
69ed0b755a
Merge pull request #2804 from rtfeldman/abilities-canonicalization
Basic canonicalization, error checking for abilities
2022-04-08 12:00:23 -04:00
Richard Feldman
b777b88e1c
Drop unused arguments field from ZeroArgumentTag 2022-04-08 11:53:16 -04:00
Richard Feldman
45b5df3a23
Extract constrain_tag helper function 2022-04-08 11:52:57 -04:00
Folkert
1d81dd6c8b
add import to Str.roc 2022-04-08 16:49:38 +02:00
Folkert
d6632981c8
update Num.roc 2022-04-08 16:47:17 +02:00
Folkert
beee95f83c
parse the header of builtins too 2022-04-08 16:02:30 +02:00
Folkert
1d0f9e9192
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-04-08 15:47:11 +02:00
Ayaz
33a5fc65ce
Update comment 2022-04-08 08:50:31 -04:00
Richard Feldman
8322ed95ed
Merge pull request #2806 from rtfeldman/toF32
Num.toF32/toF64 for LLVM backend
2022-04-08 08:28:07 -04:00
ayazhafiz
94a5cd3559 Improve shadow errors 2022-04-07 22:38:20 -04:00
ayazhafiz
02e1a98cac Remove redundant member 2022-04-07 22:19:30 -04:00
ayazhafiz
304a32ef0a Typo 2022-04-07 20:51:21 -04:00
Richard Feldman
bfb7bb3874
Update comment 2022-04-07 18:36:33 -04:00
Ayaz Hafiz
17b3c7d8ee
Generate type variables when there are lots
Closes #2797
2022-04-07 17:49:48 -04:00
Ayaz Hafiz
1edbe32252 Fix parse tests 2022-04-07 17:22:05 -04:00
Ayaz Hafiz
1ca3dad1e2 Allow complicated return type 2022-04-07 17:21:17 -04:00
Ayaz Hafiz
73bfff699f Handle symbols that shadow ability member definitions
Just add the shadowing symbol for now. We'll handle checking that a
specialization's type matches the member's type definition in a later
pass, during typechecking.
2022-04-07 17:21:17 -04:00
Ayaz Hafiz
884d07344e Clippy 2022-04-07 17:21:17 -04:00
Ayaz Hafiz
66ec1b4a84 Basic canonicalization and error checking for abilities 2022-04-07 17:21:17 -04:00
Richard Feldman
6adaf0905e
Fix missing * in type annotation 2022-04-07 16:29:17 -04:00