Commit graph

588 commits

Author SHA1 Message Date
Anton-4
44b8abdead
update to basic-cli 0.14 2024-08-23 15:50:05 +02:00
Agus Zubiaga
b451e69b20
Merge branch 'main' into typecheck-module-params 2024-08-12 22:27:16 -03:00
Joshua Warner
d25c048d48
Move Full from fmt to parse and reorganize confusingly-named Module ast type 2024-08-07 23:01:49 -07:00
Agus Zubiaga
762799052e
Merge branch 'main' into typecheck-module-params 2024-08-07 18:55:33 -03:00
Sam Mohr
698bbc3cf1
Merge pull request #6968 from smores56/ignored-record-builder-fields
Ignore underscore-prefixed fields in record builders
2024-08-06 23:36:27 -07:00
Sam Mohr
cb8040f629
Ignore underscore-prefixed fields in record builders 2024-08-06 22:49:35 -07:00
Agus Zubiaga
7027547182
Load platform dependencies
We were dropping packages from the platform header while loading.

Closes #6931
2024-08-06 18:15:28 -03:00
Joshua Warner
4f32f43048
Implement block / indent based parsing
... and enforce that defs can only occur in blocks (or, inside parenthesized expressions)
2024-07-27 13:34:16 -07:00
Anton-4
7a288dd53b
Merge pull request #6893 from roc-lang/basic-cli-12-update
DO NOT MERGE YET update to basic-cli 0.12
2024-07-15 22:48:00 +02:00
Anton-4
42a366481b
fix wasm repl warnings 2024-07-13 18:45:01 +02:00
Anton-4
3a36d84c45
update to basic-cli 0.12 2024-07-10 20:07:03 +02:00
Agus Zubiaga
26fe91b02f
Always use "MODULE PARAMS" term in errors
The theory is that this will be more searchable
2024-07-06 22:07:29 -03:00
Agus Zubiaga
0cbb352a89
Move unexpected params warning to solve 2024-07-06 21:36:26 -03:00
Agus Zubiaga
13ba59a4cb
Fix hang on qualified import with builtin name 2024-07-03 12:40:53 -03:00
Agus Zubiaga
d23a8dc618
Fix importing of module params vars 2024-07-02 22:48:47 -03:00
Agus Zubiaga
89fc1104f0
Report import params mismatch 2024-07-02 11:10:00 -03:00
Agus Zubiaga
f257c52634
clippy fix: no manual Option::map 2024-07-02 11:10:00 -03:00
Agus Zubiaga
f56239bd9b
Remove unnecessary ref 2024-07-02 11:10:00 -03:00
Agus Zubiaga
922b1c44ef
Report missing params 2024-07-02 11:10:00 -03:00
Agus Zubiaga
bc6a84a215
Report unexpected params 2024-07-02 11:09:59 -03:00
Agus Zubiaga
f0fe0a3ea6
Module params are not extensible 2024-07-02 04:10:47 -03:00
Agus Zubiaga
5ec4b042bb
Constrain and solve import params
No reporting yet
2024-07-02 04:10:46 -03:00
Agus Zubiaga
c541dd5747
Do not report import params symbol as unused 2024-07-02 04:10:46 -03:00
Agus Zubiaga
8f69e75a95
Contrain module params pattern 2024-07-02 04:10:46 -03:00
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
c6e42ecf0c
Canonicalize module param patterns 2024-07-02 04:10:45 -03: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
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
Richard Feldman
b79ee68729
clippy 2024-06-17 22:25:15 -04:00
Richard Feldman
d1a002f49e
Have file.rs use the new roc_worker crate 2024-06-17 22:21:07 -04:00
Richard Feldman
4042fd8d52
Split out work.rs into its own crate 2024-06-16 22:26:58 -04:00
Agus Zubiaga
facae9d56c
Fix platform root module flag
When loading a platform module as the root, the `is_root_module`
flag in `HeaderInfo` would be set to `false`. This caused issues
with docs generation.
2024-06-12 19:00:15 -03:00
Anton-4
ba506d5257
merge fix 2024-06-11 18:24:22 +02:00
Anton-4
4d00e9ad51
Merge branch 'main' into main
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-06-11 18:18:47 +02:00
John Konecny
a189e3ab20 Warnings are now yellow 2024-06-09 13:23:31 -04:00
Agus Zubiaga
aedb353088
Move main.roc to a constant 2024-06-08 20:23:45 -03:00
Agus Zubiaga
4e5fdfbf52
Handle root type when loading from str 2024-06-08 19:46:41 -03:00
Agus Zubiaga
0283bd1d24
UNKNOWN PACKAGE -> UNRECOGNIZED PACKAGE rename 2024-06-08 18:34:45 -03:00
Agus Zubiaga
ec55caa77a
Custom reporting for unknown package when checking a module directly 2024-06-08 18:29:30 -03:00
Agus Zubiaga
7faff12cbf
Report unrecognized shorthands when loading from the root module 2024-06-08 14:12:01 -03:00
Agus Zubiaga
5a1bf2b891
Shorter module_ids lock in load#parse 2024-06-07 18:10:32 -03:00
Agus Zubiaga
f5e08cb917
Use module's parent dir if main roc file is not found 2024-06-07 17:42:04 -03:00
Agus Zubiaga
2da7ea394b
Add --main flag to specify app/package to resolve deps from 2024-06-07 17:09:44 -03:00
Agus Zubiaga
75fe98cbaf
Load packages from main package/platform when checking a module 2024-06-06 20:47:50 -03:00
Agus Zubiaga
cf8ab11d27
Load packages from main app when checking a module 2024-06-06 20:25:54 -03:00
Agus Zubiaga
3ff0c986e8
Extract shorthand registration into its own function 2024-06-05 22:16:32 -03:00
Agus Zubiaga
f92bf4852f
Find main.roc when loading a module 2024-06-05 20:24:49 -03:00
Agus Zubiaga
e3b600c282
New package header syntax
Implements the new package header syntax as discussed in Zulip [1].

package [Csv] {
    parser: "../parser/main.roc"
}

Old headers still parse and are automatically upgraded to the new
syntax by the formatter.

[1] 418444862
2024-05-01 10:49:03 -03:00