Joshua Warner
e39a385f5f
Allow parsing when
cases with python-like indentation
2022-10-18 19:13:20 -07:00
Folkert de Vries
e90ddcd7d1
Merge pull request #4354 from roc-lang/var-has-variable
...
Resolve ability specializations looked up in expects
2022-10-18 23:28:17 +02:00
Ayaz Hafiz
05e8e6de6f
Disallow typing optional fields when required fields are annotated
...
Closes #4313
2022-10-18 15:50:20 -05:00
Brendan Hansknecht
62c9a2a8b6
Merge pull request #4355 from roc-lang/concat-memleak
...
Fix memory leak in List.concat
2022-10-18 19:07:52 +00:00
Ayaz Hafiz
d7237dc9e9
Cargo format
2022-10-18 12:09:18 -05:00
Folkert
b23b53aa6f
disable -fPIE on windows
2022-10-18 18:45:38 +02:00
Ayaz Hafiz
706d22a942
Fix encode/decode deriving
2022-10-18 08:22:23 -05:00
Brendan Hansknecht
9f09bebdca
run
2022-10-17 21:50:25 -07:00
Brendan Hansknecht
1225cb54fc
Fix memory leak in List.concat
2022-10-17 21:45:46 -07:00
Ayaz Hafiz
d26e9c81e0
Resolve ability specializations looked up in expects
2022-10-17 17:56:48 -05:00
Ayaz Hafiz
8aee32830a
Add symbols' localized type variable to the AST
2022-10-17 17:35:48 -05:00
Folkert
d93902cd18
fix compilation on windows for windows
2022-10-17 21:22:13 +02:00
Ayaz Hafiz
7986514d20
Use runtime representation of values when building structural eq
...
Closes #4348
2022-10-17 11:36:57 -05:00
Prajwal S N
07224e9086
builtin(list): add List.walkFrom, List.walkFromUntil
...
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2022-10-17 20:51:03 +05:30
Ayaz Hafiz
3d34de5fc1
Remove test caught by reporting tests
2022-10-17 09:59:34 -05:00
Ayaz Hafiz
ecab8fa25a
Make sure self-recursive checks only happen after typechecking
...
Programs like
```
after : ({} -> a), ({} -> b) -> ({} -> b)
fx = after (\{} -> {}) \{} -> if Bool.true then fx {} else {}
```
are legal because they always decay to functions, even if they may not
look like functions syntactically. Rather than using a syntactic check
to check for illegally-recursive functions, we should only perform such
checks after we know the types of values.
Closes #4291
2022-10-17 09:59:32 -05:00
Anton-4
d6885bde23
Merge pull request #4299 from cjduncana/ci-markdown-links
...
Repair broken links in Markdown
2022-10-15 19:32:25 +02:00
Anton-4
d242895ff9
Merge pull request #4254 from roc-lang/wasm32_cli_run
...
wasm 32 cli run fixes, added to ci tests
2022-10-15 18:41:52 +02:00
Anton-4
2f8dcb7e12
Merge pull request #4298 from lucacervello/replace-panic!-with-internal-error!-in-compiler-crates
...
Replace panic! with internal_error! in `compiler/build`, `compiler/alias_analysis` and `compiler/arena_pool`
2022-10-15 17:05:25 +02:00
Anton-4
78e66c6c26
format Str.roc
2022-10-15 11:19:54 +02:00
Anton-4
762bd43e5f
minor improvements
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-10-15 09:46:41 +02:00
Luke Boswell
a99fe32bff
Merge branch 'roc-lang:main' into updating-docs
2022-10-15 18:32:37 +11:00
Anton-4
789586f545
add link with explanation of grapheme
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-10-15 09:17:08 +02:00
Luke Boswell
e1e084a68d
remove >>> from comments
2022-10-15 16:29:42 +11:00
Luke Boswell
1b4e89203d
updated Str builtin documentation
2022-10-15 16:15:43 +11:00
Ayaz
c1c339dbdf
Merge pull request #4304 from roc-lang/i4259
...
Make sure type variables bound to abilities are instantiated in aliases
2022-10-14 16:07:58 -05:00
Folkert
e63dba8e2f
minimal wasi benchmarks
2022-10-14 21:59:34 +02:00
Ayaz Hafiz
5e35b6458a
Apply lint suggestions
2022-10-14 13:56:01 -05:00
Ayaz Hafiz
65f1bd2907
Fix rigid able bindings to abilities
2022-10-14 13:56:01 -05:00
Ayaz Hafiz
20e4295eea
Make sure type variables bound to abilities are instantiated in aliases
...
Closes #4259
2022-10-14 13:56:00 -05:00
Ayaz Hafiz
12ecdab4c5
Add listGetUnsafe to Dict.roc rather than exposing from list
2022-10-14 13:43:31 -05:00
Brendan Hansknecht
5a86f611fa
add some TODOs
2022-10-14 07:55:07 -07:00
Brendan Hansknecht
d87a750f7c
misc cleanup
2022-10-14 07:45:50 -07:00
Brendan Hansknecht
bb26844cf1
add tests for Hash.hashStrBytes and Hash.hashUnordered
2022-10-14 07:45:50 -07:00
Brendan Hansknecht
382eaf88c2
add a bunch of tests
2022-10-14 07:45:50 -07:00
Brendan Hansknecht
e937a9078c
add Hasher.reset and Hash.hashUnordered
2022-10-14 07:45:50 -07:00
Brendan Hansknecht
ab16effa00
correct lengths
2022-10-14 07:45:50 -07:00
Brendan Hansknecht
0a31173029
expose List.getUnsafe for use in Dict
2022-10-14 07:45:50 -07:00
Brendan Hansknecht
6445f26529
remove hashUnordered for now, needs more methods
2022-10-14 07:45:50 -07:00
Brendan Hansknecht
7a8dee888d
add hashUnordered that uses a walk method and hashes all elements
2022-10-14 07:45:50 -07:00
Brendan Hansknecht
f398bb1eff
switch hashStr to use addBytes
2022-10-14 07:45:49 -07:00
Brendan Hansknecht
49c3fe1643
add version of wyhash to roc lib
2022-10-14 07:45:49 -07:00
Luke Boswell
0b1365e0a3
adding expect and documentation for Str builtin
2022-10-14 19:58:07 +11:00
Ayaz
e471f4b388
Merge pull request #4290 from roc-lang/impl-eq
...
Add the `Eq` ability
2022-10-13 16:13:51 -05:00
Folkert de Vries
da0a8f0b2b
Merge pull request #4312 from roc-lang/i4309
...
Correctly destructure patterns that are assigned to a thunk'd value
2022-10-13 00:22:04 +02:00
Ayaz Hafiz
ee1d93ba06
Rollup review comment suggestions from #4302
2022-10-12 16:42:11 -05:00
Ayaz Hafiz
b8cbaf6946
Resume caching Bool, Dict, and Set
2022-10-12 16:40:20 -05:00
Ayaz Hafiz
6e5de0d0a9
Disable test on gen-dev, for now
2022-10-12 16:38:37 -05:00
Ayaz Hafiz
7fa2778ecf
Fix even more load tests
2022-10-12 16:38:37 -05:00
Ayaz Hafiz
ccfb85325d
Update load tests
2022-10-12 16:38:37 -05:00