Commit graph

6587 commits

Author SHA1 Message Date
Agus Zubiaga
dd0e28240a
Add module param identifiers to solve's scope 2024-07-02 04:10:45 -03:00
Agus Zubiaga
717463079a
Add module params to module cache 2024-07-02 04:10:45 -03:00
Agus Zubiaga
3a1d3d4ddb
Reuse record destructure can for module params 2024-07-02 04:10:45 -03:00
Agus Zubiaga
7ac72159e9
Parse module params loc and rename to pattern 2024-07-02 04:10:45 -03:00
Agus Zubiaga
c6e42ecf0c
Canonicalize module param patterns 2024-07-02 04:10:45 -03:00
Agus Zubiaga
1526fc4aee
can::Expr::ParamsVar for lookups with params 2024-07-02 04:10:44 -03:00
Agus Zubiaga
5aebb7b570
Unqualified lookups return params 2024-07-02 04:10:44 -03:00
Agus Zubiaga
9d26adb228
Qualified lookups return params 2024-07-02 04:10:44 -03:00
Agus Zubiaga
96e2d32fa6
Canonicalize import params record 2024-07-02 04:10:44 -03:00
Agus Zubiaga
5e2ccdbfd5
Import params pending def 2024-07-02 04:10:44 -03:00
Luke Boswell
a44a6889bd
Merge pull request #6851 from kdziamura/last-expr-desugar
Simplify Defs parsing
2024-07-02 08:48:31 +10:00
shua
d90da3af52
rm TotallyNotJson
TotallyNotJson.roc now lives on the farm in virtual-dom-wip as Json.roc.
Any reference in stdlib or builtins has been removed, as well as the
last places it was used (in python/ruby-interop examples).
2024-07-01 20:37:23 +02:00
shua
67f555feea
test_mono, uitest: rm stdlib Json dependency
use the same tag len fmt introduced in test_gen/gen_abilities tests
2024-07-01 20:36:28 +02:00
shua
0faa1d5f20
test_gen: replace stdlib Json with inline implementation
Towards the goal of removing Json from stdlib, this change replaces
usage of TotallyNotJson in test_gen/gen_abilities with a simple usable
inline implementation of Encoder/DecoderFormatting.

Similarly, the use of TotallyNotJson in test_reporting is not necessary
at all and is replaced with a Decoder that wouldn't actually work, but
which does compile.
2024-07-01 20:30:05 +02:00
Kiryl Dziamura
819cfd6035
fix test snapshots 2024-07-01 19:48:00 +02:00
Kiryl Dziamura
6329389972
add tests 2024-07-01 19:47:49 +02:00
Kiryl Dziamura
1008b94259
fix returned expression desugaring 2024-07-01 19:46:59 +02:00
Kiryl Dziamura
c4b63aa80a
simplify defs parsing 2024-07-01 19:44:32 +02:00
Kiryl Dziamura
de9ed734c5
remove EmptyDefsFinal 2024-07-01 18:45:23 +02:00
Richard Feldman
99eb5bfe1e
Support formatting strings in error macros 2024-06-29 21:09:17 -04:00
Kiryl Dziamura
9c133f72d8
test bang in dbg arg 2024-06-28 13:31:47 +02:00
Kiryl Dziamura
aa17d17c60
handle bang in dbg arg 2024-06-28 13:26:38 +02:00
Luke Boswell
b92d0ef315
fix host_dest in preprocessed_host 2024-06-28 15:25:07 +10:00
Luke Boswell
44d76d78a1
Merge pull request #6833 from shua/fixme
resolve TODO: don't use vec
2024-06-28 12:44:43 +10:00
Luke Boswell
1c091e6cd5
Merge pull request #6826 from JRI98/fix_6825
Handle multi pattern unbound list rest variables
2024-06-28 10:18:11 +10:00
Luke Boswell
ee84b61360
update preprocess host API 2024-06-28 09:12:45 +10:00
Isak
eb98dd7bde
move comment 2024-06-27 13:38:30 -04:00
Isak
cc7d3d3e1d
fix: allow multiple newlines between signature and body 2024-06-27 13:34:09 -04:00
Sam Mohr
cd488300fd
Merge branch 'main' into builtin-task 2024-06-26 03:17:56 -07:00
Sam Mohr
43fadeacdb
Fix clippy errors 2024-06-26 03:15:06 -07:00
Sam Mohr
4b7d9c9222
Fix generated type for foreign-call task wrappings 2024-06-26 02:34:24 -07:00
Ayaz Hafiz
8cdb193301
Update stale document references 2024-06-26 02:16:20 -04:00
Agus Zubiaga
ad6dde10af
Load packages of platform 2024-06-25 21:39:55 -03:00
Agus Zubiaga
c36595e60d
Load packages of packages 2024-06-25 21:29:21 -03:00
Kiryl Dziamura
bff73ff6b2
check if final expr in deps is suffixed 2024-06-25 19:14:18 +02:00
Anton-4
1b10772bcb
Merge pull request #6648 from JackoCoolio/unmacro_parsers
Unmacro parser combinators
2024-06-25 12:54:22 +02:00
Sam Mohr
700c7ae9aa
Add Task as a built-in module/type 2024-06-25 00:03:56 -07:00
Anton-4
d47a073634
Merge pull request #6834 from r-bar/fix/wasi-libc-lib
fix: wasi-libc.a library packaging
2024-06-24 16:57:05 +02:00
shua
91c071713b
appease clippy (only on mac silicon?) 2024-06-24 16:53:32 +02:00
Ryan Barth
1858fc90e1
fix: use path finder everywhere, fix get_relative_path() call 2024-06-23 12:02:50 -07:00
Ryan Barth
5a231763af
fix: change target directory output to match release tarball structure 2024-06-23 10:00:36 -07:00
shua
4d0112ef2a
resolve TODO: don't use vec 2024-06-23 16:20:05 +02:00
Anton-4
f8432f7510
fmt 2024-06-22 20:09:15 +02:00
Anton-4
ab217ede3f
Merge remote-tracking branch 'upstream/main' into unmacro_parsers 2024-06-22 20:02:30 +02:00
shua
e2eb9c9aaa
rm dead FIXME comment
this comment was added originally in 24e6cd80e7, but was a comment on a `if cfg(..) {...}` block. Later that `if` was removed but the comment was not, and eventually got copied to another location making it even harder to figure out why it's there.
2024-06-22 19:07:26 +02:00
JRI98
f4551978ce
Handle multi pattern unbound list rest variables 2024-06-21 17:01:49 +01:00
Luke Boswell
03eadc2e0f
Merge pull request #6822 from roc-lang/dependabot/npm_and_yarn/crates/compiler/checkmate/www/braces-3.0.3
Bump braces from 3.0.2 to 3.0.3 in /crates/compiler/checkmate/www
2024-06-21 18:17:19 +10:00
Evan Relf
2a71dccf5e Add tests 2024-06-19 15:19:25 -07:00
Evan Relf
d678f1c049 Format shebangs correctly
Fixes the regression I described in [#1135].

[#1135]: https://github.com/roc-lang/roc/issues/1135
2024-06-19 15:07:22 -07:00
dependabot[bot]
f43c6b2026
Bump braces from 3.0.2 to 3.0.3 in /crates/compiler/checkmate/www
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-19 21:13:36 +00:00