Richard Feldman
2cf7b5b5ca
Update List.swap to no longer use Nat
2024-01-26 16:06:08 -05:00
Richard Feldman
27474d4ed8
Update List.reserve to no longer use Nat
2024-01-26 16:06:08 -05:00
Richard Feldman
e207a7ce53
Use Variable::U64 for List.len in file load
2024-01-26 16:06:08 -05:00
Richard Feldman
4a38d3a1af
Remove Nat from some compiler tests that use lists
2024-01-26 16:06:08 -05:00
Richard Feldman
7e51dfd526
Update test fixtures to not use Nat indices
2024-01-26 16:06:07 -05:00
Richard Feldman
70a1def63b
Update some docs to not reference Nat
2024-01-26 16:06:07 -05:00
Richard Feldman
d909cc5961
Update glue to no longer use Nat
2024-01-26 16:06:07 -05:00
Richard Feldman
ef030ae656
Update a comment
2024-01-26 16:06:06 -05:00
Richard Feldman
ef9623798b
Update CLI testing examples to not use Nat
2024-01-26 16:05:57 -05:00
Richard Feldman
6140c5023b
Remove Nat from TotallyNotJson
2024-01-26 16:05:57 -05:00
Richard Feldman
16ddb16177
Update Dict to no longer use Nat
2024-01-26 16:05:57 -05:00
Richard Feldman
77a10986d6
Update Set to no longer use Nat
2024-01-26 16:05:57 -05:00
Richard Feldman
97f21e65fe
Update ListLen and ListGetUnsafe to not use Nat
2024-01-26 16:05:56 -05:00
Richard Feldman
2e72021a74
Drop some obsolete U64 conversions in Str
2024-01-26 16:05:56 -05:00
Richard Feldman
df5b10e981
Update a readme to no longer mention Nat
2024-01-26 16:05:56 -05:00
Richard Feldman
0a4862da88
Update mono tests
2024-01-26 16:04:16 -05:00
Richard Feldman
09574203ce
Update to basic-cli 0.8.1
2024-01-26 16:02:30 -05:00
Richard Feldman
7f2e2d0803
Fix repro for nasty import bug
...
The bug reproduces if you go to the commit before this one;
seems to be the problem is importing an un-exposed value
as unqualified (possibly from a package, might be relevant)
2024-01-26 16:01:08 -05:00
Richard Feldman
bca6417a9d
Fix @as and @intCast argument order
2024-01-26 16:00:52 -05:00
Richard Feldman
632903bbde
Fix some tests
2024-01-26 16:00:33 -05:00
Richard Feldman
a1656381c5
Update some Result docs
2024-01-26 16:00:33 -05:00
Richard Feldman
9e3cff61d7
Remove Nat uses from Str
2024-01-26 16:00:33 -05:00
Jared Forsyth
bbbbb12e90
Fix syntax errors from RustGlue's tag generated code
...
```rs
/// A tag named ``DirReadErr``, with the given payload.
pub fn DirReadErr(f0: UnwrappedPath, f1: roc_std::RocStr) -> Self {
Self {
f0
f1
}
}
```
becomes
```rs
/// A tag named ``DirReadErr``, with the given payload.
pub fn DirReadErr(f0: UnwrappedPath, f1: roc_std::RocStr) -> Self {
Self {
f0,
f1
}
}
```
2024-01-26 11:00:00 -06:00
Stuart Hinson
7c5dd9e0aa
allow attributes in doc headers
...
include ENABLE_HEADING_ATTRIBUTES markdown option
2024-01-26 08:32:50 -05:00
On vacation
4ee3431428
Merge branch 'main' into rust-1-72-upgrade
2024-01-26 13:39:34 +01:00
Brendan Hansknecht
abc4fd18cc
add --fuzz
option to roc
2024-01-25 15:42:18 -08:00
Michael Pfeifer
390808eb12
Prevent roc format from reading $PWD when --stdin or --stdout options given
2024-01-24 23:48:54 +01:00
Richard Feldman
8e0e48e0bb
Merge pull request #6415 from roc-lang/parser-examples-url
...
Replace parser example with URL package
2024-01-24 09:05:51 -05:00
Luke Boswell
4e7b822ec3
Merge branch 'main' into fix-docs-css
2024-01-24 15:32:09 +11:00
Brian Teague
4499f8c6f4
isApproxEq function
2024-01-23 21:06:35 -05:00
Richard Feldman
9a3340950e
Merge pull request #6416 from roc-lang/highlight-bugfix
...
Highlight after special-casing repl snippets
2024-01-23 05:34:10 -05:00
Richard Feldman
98ddbdf5df
clippy
...
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2024-01-23 00:05:42 -05:00
Richard Feldman
a8b271c8d5
Copy tweaks to Str docs
2024-01-23 00:05:06 -05:00
Richard Feldman
2dc7c4d169
cargo fmt
...
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2024-01-23 00:01:46 -05:00
Richard Feldman
615975b30a
Highlight after special-casing repl snippets
...
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2024-01-22 23:58:38 -05:00
Luke Boswell
ff6a31673a
fix CI tests
2024-01-23 14:28:40 +11:00
Richard Feldman
07ddd272e2
Merge pull request #6361 from faldor20/fix-lang-server-hang
...
Fix hang from bad imports
2024-01-21 22:06:48 -05:00
Brendan Hansknecht
62c4c2dcb5
Merge branch 'main' into main
2024-01-21 12:17:44 -08:00
Richard Feldman
9cad19d8dc
Merge pull request #6395 from roc-lang/str-unicode
...
Remove scalars and graphemes from `Str`
2024-01-21 13:34:30 -05:00
Richard Feldman
4716139342
Merge pull request #6407 from lukewilliamboswell/luke-subs
...
Use subs caching on windows
2024-01-21 13:03:25 -05:00
Richard Feldman
2970fc4384
Merge remote-tracking branch 'origin/main' into str-unicode
2024-01-21 12:30:16 -05:00
Folkert de Vries
f3930d6faf
Merge pull request #6405 from roc-lang/list-clone
...
add `List.clone`
2024-01-21 12:04:22 +01:00
Luke Boswell
b1ffa5c99b
use subs caching on windows
2024-01-21 22:00:17 +11:00
Luke Boswell
ebff47a2aa
fix clippy
2024-01-21 12:24:35 +11:00
Folkert
8b5269a66c
update mono tests
2024-01-20 22:31:54 +01:00
Folkert
f1ffc36efe
add List.clone
2024-01-20 20:29:07 +01:00
Brendan Hansknecht
b6a5e5367c
build structs directly in the alloca
2024-01-20 09:44:46 -08:00
Agus Zubiaga
002493e32c
Load and can ingested file imports
...
Moves handling of ingested file imports from load to can, so that they
can be properly introduced in the scope they appear.
Example:
import "input.txt" as input : Str
image =
import "image.png" as bytes : List U8
# `bytes` is only available under `image`
decodePng bytes
...
2024-01-20 08:43:40 -03:00
Agus Zubiaga
7b3317dbb6
Update unused warnings for inline imports
...
Now that imports can be limited to smaller scopes than the entire module,
unused import warnings need to work like unused def warnings.
This commit moves unused import warnings discovery and reporting from load
to canonicalization where we can track their usage per scope.
This also fixes a longstanding bug where unused exposed names from an import
were not reported if they were only used in a qualified manner.
2024-01-20 08:43:36 -03:00
Agus Zubiaga
08e6b79dca
fmt: Simplify ModuleImport is_multiline
2024-01-20 08:39:33 -03:00