Commit graph

20018 commits

Author SHA1 Message Date
Ayaz Hafiz
61cf8e53e6
Have FunctionOrTagUnion include multiple possible tags 2022-10-05 17:24:52 -05:00
Ayaz
797763b5fa
Merge pull request #4216 from roc-lang/fix-envp
fix envp
2022-10-05 17:01:31 -05:00
Ayaz
4f1d7fca9a
Merge pull request #4218 from roc-lang/rollup-10-05
Misc bugfixes 10-05
2022-10-05 14:52:11 -05:00
Ayaz Hafiz
73210469db
Add tests for env var passing 2022-10-05 14:36:34 -05:00
Ayaz
596f14d173
Merge pull request #4203 from roc-lang/shift-signature
Have `Num.shift*By` functions shift by a `U8`
2022-10-05 13:26:36 -05:00
Ayaz Hafiz
f849bab6f1
Ignore large bit abs on wasm 2022-10-05 13:06:44 -05:00
Folkert de Vries
45044d1143
Merge pull request #4214 from roc-lang/refactor-program-run-printing
refactor program run printing
2022-10-05 18:18:25 +02:00
Ayaz Hafiz
e31a16f650
Properly wrap with newtype-by-void layouts in repl
Closes #4208
2022-10-05 11:17:57 -05:00
Folkert
5d8f04575e
fix envp passing 2022-10-05 16:49:13 +02:00
Ayaz Hafiz
657346a057
Support Num.abs for non-64 bit integer types
Closes #4210
2022-10-05 08:39:45 -05:00
Ayaz Hafiz
df3b7cb1b4
Preserve comments before header
Closes #4212
2022-10-05 08:34:30 -05:00
Folkert
e1b7dbb0d9
refactor program running IO 2022-10-05 13:38:30 +02:00
Ayaz
d12568d8e4
Merge pull request #4204 from roc-lang/hash-derivers
Auto-derive `Hash` for integers, strings, and inductive lists
2022-10-04 19:33:06 -05:00
Ayaz Hafiz
fd421c005d
Refactor hash immediate tests 2022-10-04 14:40:53 -05:00
Ayaz Hafiz
6d7f664194
Add test for hashing list of lists 2022-10-04 14:40:21 -05:00
Ayaz Hafiz
c2c15d3ee1
Skip pending test on wasm 2022-10-04 14:39:55 -05:00
Ayaz Hafiz
29991654db
Make sure conversion of signed ints before shift applies to the shifted number 2022-10-04 14:23:53 -05:00
Ayaz Hafiz
085c73dffe
Clippy 2022-10-04 14:10:29 -05:00
Ayaz Hafiz
f2c30a699c
Remove stray dbg 2022-10-04 14:09:40 -05:00
Ayaz Hafiz
42ddcb70df
Add derive test for List of strings 2022-10-04 14:09:40 -05:00
Ayaz Hafiz
5b833e57b5
Support derivation of Hash for Str and List 2022-10-04 14:09:40 -05:00
Ayaz Hafiz
294244ae25
Make sure flex unifies with rigid-able vars correctly 2022-10-04 14:09:40 -05:00
Ayaz Hafiz
715d88510c
Add tests for immediates of the Hash ability 2022-10-04 14:09:40 -05:00
Ayaz Hafiz
8844cd256e
Make sure Num.minU128/Num.maxU128 is properly exposed 2022-10-04 14:09:40 -05:00
Ayaz Hafiz
427528e659
Add deriving of immediates for the Hash ability 2022-10-04 14:09:39 -05:00
Ayaz
a08b45263b
Merge branch 'main' into shift-signature
Signed-off-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
2022-10-04 12:58:09 -05:00
Folkert de Vries
7bd6523175
Merge pull request #4199 from roc-lang/hash-obligation-checking
Obligation checking for the `Hash` ability
2022-10-04 19:51:55 +02:00
Ayaz Hafiz
dea7661068
Have Num.shift*By functions shift by a U8
302305020
2022-10-04 12:28:33 -05:00
Ayaz Hafiz
f68cb3b0ed
Flip order of hash signature 2022-10-04 12:14:07 -05:00
Ayaz
006e97d976
Merge pull request #4197 from roc-lang/hash-api
Add the `Hash` builtin module
2022-10-04 12:12:32 -05:00
Ayaz Hafiz
5c6856d1d6
Add reporting test 2022-10-04 11:10:11 -05:00
Ayaz Hafiz
e9efc95425
Obligation checking for the Hash ability
This implements type-level checks that types can and cannot implement
the `Hash` ability.

Part of #4195
2022-10-04 10:51:14 -05:00
Ayaz Hafiz
ca4ee908f8
Avoid shadowing Hash in mono tests 2022-10-04 10:23:39 -05:00
Ayaz Hafiz
1c8ed27e58
Avoid Hash shadowing in abilities tests 2022-10-04 10:23:09 -05:00
Ayaz Hafiz
eadbc0912a
Update the compiler to be aware of Hash 2022-10-04 10:22:22 -05:00
Ayaz Hafiz
76510ec323
Add Hash.roc builtin module 2022-10-04 10:14:29 -05:00
Ayaz Hafiz
f6c21cc933
Correctly format abilities with comments 2022-10-04 10:03:51 -05:00
Ayaz
f145610be0
Merge pull request #4125 from roc-lang/fix-module-name-mismatches
Assorted QoL improvements to incorrect module importing
2022-10-04 06:37:19 -05:00
Richard Feldman
feb05eac27
Merge pull request #4184 from roc-lang/i4147
Suggest Bool.true and Bool.false where tag literals are used
2022-10-03 18:49:51 -07:00
Ayaz
2f9d41f1d6
Merge pull request #4183 from roc-lang/i4149
Print bool correctly in repl
2022-10-03 20:48:26 -05:00
Ayaz Hafiz
cf5712620c
Suggest Bool.true and Bool.false where tag literals are used
Closes #4147
2022-10-03 17:36:27 -05:00
Ayaz
6ff59f6dc7
Merge pull request #4182 from roc-lang/i4151
Correctly format nested pipeline operators
2022-10-03 14:53:02 -05:00
Folkert de Vries
0cc7d738e5
Merge pull request #4181 from roc-lang/i4153
Correctly compile top-level defs that are illegally self-recursive
2022-10-03 21:49:50 +02:00
Ayaz Hafiz
823076f4bf
Update repl tests 2022-10-03 14:34:18 -05:00
Ayaz Hafiz
dfd0fdc990
Print bool correctly in repl
Closes #4149
2022-10-03 14:32:15 -05:00
Ayaz Hafiz
bbb2083dd6
Correctly format nested pipeline operators
Closes #4151
2022-10-03 14:18:17 -05:00
Ayaz Hafiz
581eeb5054
Improve invalid recursion error message quality 2022-10-03 13:30:43 -05:00
Ayaz Hafiz
92b754f292
Illegal self recursion on toplevel defs
Closes #4153
2022-10-03 13:14:56 -05:00
Ayaz Hafiz
fd4b20de58
Fix test
Closes #3385
2022-10-03 13:03:52 -05:00
Anton-4
b7e9b07acb
Merge pull request #4175 from roc-lang/docs-link-readme
make docs links stand out more
2022-10-03 17:49:09 +02:00