Commit graph

467 commits

Author SHA1 Message Date
Agus Zubiaga
519ff56a85
Create can::module::ModuleParams for convenience 2024-08-17 13:10:37 -03:00
Agus Zubiaga
e80e3e5b2d
Convert top-level value def to fn taking params 2024-08-17 11:21:21 -03:00
Agus Zubiaga
762799052e
Merge branch 'main' into typecheck-module-params 2024-08-07 18:55:33 -03:00
Anton-4
60ca8382a5
improve abilities error 2024-08-03 11:57:23 +02:00
Brendan Hansknecht
c734a27b59
move List.map* into roc 2024-07-13 10:39:56 -07:00
Anton-4
b702cb634f
better mono repl error 2024-07-12 17:02:34 +02:00
Agus Zubiaga
0cbb352a89
Move unexpected params warning to solve 2024-07-06 21:36:26 -03:00
Folkert
3cbec41d59
hook borrow inference up 2024-07-06 16:05:52 +02:00
Folkert
199558b661
basic transitive inference 2024-07-06 16:05:52 +02:00
Agus Zubiaga
400c156d81
Replace params mono todo with unimplemented 2024-07-02 11:10:00 -03:00
Agus Zubiaga
922b1c44ef
Report missing params 2024-07-02 11:10:00 -03:00
Agus Zubiaga
5ec4b042bb
Constrain and solve import params
No reporting yet
2024-07-02 04:10:46 -03:00
Agus Zubiaga
674adf1fad
Wrap import params expr so we can constrain later 2024-07-02 04:10:46 -03:00
Agus Zubiaga
1526fc4aee
can::Expr::ParamsVar for lookups with params 2024-07-02 04:10:44 -03:00
Brendan Hansknecht
6dc5bfb1b7
Use roc_target over target_lexicon
Tailors a target class for our needs.
Replaces tons of uses across the entire compiler.
This is a base for later adding new targets like thumb.
2024-03-31 10:50:26 -07:00
Richard Feldman
3b3a330d73
Merge pull request #6422 from roc-lang/remove-nat
Remove `Nat`
2024-02-20 09:45:36 -05:00
Folkert
7c104e291b
fix two repl panics
they now hit a runtime error and then report the type errors that caused the crash
2024-02-11 19:04:26 +01:00
Richard Feldman
24a38c4a26
Merge remote-tracking branch 'origin/main' into remove-nat 2024-02-11 12:26:36 -05:00
JRI98
ad6900514b
Create symbols for struct fields before record update 2024-02-02 23:49:48 +00:00
Richard Feldman
204cee7d60
Clean up more unused Nat stuff 2024-01-26 16:23:21 -05:00
Richard Feldman
76dcbee25f
Drop unused target_info from layout 2024-01-26 16:23:21 -05:00
Richard Feldman
70a1def63b
Update some docs to not reference Nat 2024-01-26 16:06:07 -05:00
Anton-4
cd632fe549
Merge branch 'main' of github.com:roc-lang/roc into clippy-1.74 2023-12-25 17:05:37 +01:00
Brendan Hansknecht
3966d63e2f
add src and location to dbg 2023-12-02 21:18:31 -08:00
Ayaz
aaba3f4d82
Merge branch 'main' into clippy-1.74 2023-12-02 20:09:06 -06:00
Brendan Hansknecht
b7f72eff86
add basic Dbg desugaring and LowLevelDbg 2023-11-29 21:05:48 -08:00
Folkert
4fafc669b8
in record fields give a forced imported thunk a unique symbol 2023-11-28 23:47:53 +01:00
HajagosNorbert
d71b386715
Merge branch 'main' into get-pointer 2023-11-21 11:15:28 +01:00
HajagosNorbert
6975294278
format code & replace vec!(in arena;...) with arena.alloc([...]) 2023-11-21 11:09:42 +01:00
Folkert
b3177a157c
first automatic changes 2023-11-18 22:38:04 +01:00
HajagosNorbert
9c21ac1388
rename to GetElementPointer, index -> indices 2023-11-13 15:48:05 +01:00
HajagosNorbert
90223022af
remove tag_id in favor of index 2023-11-13 15:48:05 +01:00
HajagosNorbert
347431d1df
index to slice of indicies 2023-11-13 15:48:05 +01:00
Yuki Omoto
8580b62f7e
Add runtime error to bring an error to roc instead of using wrong number value just to continue the program 2023-11-08 00:38:03 +09:00
Yuki Omoto
75dff53cc8
Fix crash caused by number related type error
This fixes an issue where number related type errors cause a crash.
For example, using a negative number for `Nat` like List.dropAt [1, 2, 3] -1` as in #5916.
so as f64 number.
2023-11-08 00:38:03 +09:00
Folkert
6ab54c02e2
drop into_iter in some places 2023-10-07 19:11:36 +02:00
Anton-4
f078204c1f
rust 1.71.1 upgrade 2023-09-26 12:08:16 +02:00
Folkert
5557fb7e34
repl helper codegen 2023-09-14 14:39:12 +02:00
Folkert
3909443ef4
fix two bugs in the dev backend 2023-09-13 20:24:17 +02:00
Richard Feldman
5d6c787deb
Special-case layout conversions for builtin alias 2023-08-14 14:58:28 -04:00
Folkert
69588a3b76
fix wasm tests 2023-08-09 16:04:48 +02:00
Folkert
0f3da32d9d
remove unused field 2023-08-09 15:11:02 +02:00
Folkert
7fb4b60b21
move around hostexposedalias logic 2023-08-09 15:09:03 +02:00
Folkert
bec0e52f1e
make glue and mono look at the same type 2023-08-08 19:57:11 +02:00
Folkert
3d86ccf167
remove as Fx from platform types 2023-08-08 16:37:47 +02:00
Folkert
cdd2aab217
add alloca as an expression 2023-07-30 18:46:00 +02:00
J.Teeuwissen
80faf0eeee
removed borrow.rs 2023-07-30 14:03:38 +02:00
Folkert
a7bf9bc639
annotations are still optional 2023-07-24 22:18:58 +02:00
Folkert
126c3f1536
simplify information passed to mono 2023-07-24 21:54:39 +02:00
Folkert
e549ea78fe
simplify HostSpecializations 2023-07-24 21:33:05 +02:00