Brendan Hansknecht
4072a2a745
attempt to switch to inlined Inspect.inspect
in autoderive
2023-12-02 21:18:31 -08:00
Brendan Hansknecht
4c2eb8b378
Change the generated inspect for Opaque types to print (@Opaque payload)
2023-12-02 21:18:30 -08:00
Ayaz
0955efac5f
Merge pull request #6160 from CrepeGoat/patch-2
...
Update Decode.roc
2023-12-02 21:02:46 -06:00
Becker A
14e04d65cf
Update Decode.roc
...
fixed typo
Signed-off-by: Becker A. <awqatty.b@gmail.com>
2023-12-02 18:33:17 -07:00
Brendan Hansknecht
5dd0bdebc9
support seamless slice in expects
2023-12-02 15:57:53 -08:00
Brendan Hansknecht
edaa600274
Merge branch 'main' into feat-download-progress
2023-12-01 22:03:02 -08:00
Brendan Hansknecht
e65f14fa49
Merge pull request #6090 from Gungy2/5830
...
Add `log` function to `Dec`
2023-12-01 22:02:35 -08:00
Richard Feldman
421f8d9c5c
Fix Str.walkUtf8 docs
2023-12-01 20:49:58 -05:00
Brendan Hansknecht
738098bfd0
Merge branch 'main' into 5830
2023-12-01 16:37:33 -08:00
Ching Pei Yang
7290e5fcce
Merge branch 'main' into feat-download-progress
2023-12-01 19:53:02 +01:00
Ching Pei Yang
6f3588186c
Print download progress to stderr instead
2023-12-01 19:48:36 +01:00
Anton-4
590140f182
Revert "Merge pull request #6113 from JRMurr/nix-build-file-sets"
...
This reverts commit f7841f0d1c
, reversing
changes made to b4506a4dac
.
2023-12-01 18:48:12 +01:00
Anton-4
dc37b7a31d
Merge pull request #6132 from roc-lang/use-basic-cli-7
...
use latest basic-cli
2023-12-01 16:37:04 +01:00
Anton-4
f7841f0d1c
Merge pull request #6113 from JRMurr/nix-build-file-sets
...
Use nix file set API to reduce how often we will need to rebuild
2023-12-01 15:57:15 +01:00
Anton-4
b4506a4dac
Merge pull request #6095 from CrepeGoat/patch-1
...
Fixed `roc format --stdin --stdout` to format output
2023-12-01 15:27:05 +01:00
Anton-4
cc8966e37d
Update ingested_file_bytes test
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-12-01 12:49:31 +01:00
Anton-4
a050933955
use latest basic-cli
2023-12-01 12:33:09 +01:00
Ayaz Hafiz
a53da2bc24
Make sure late specializations of opaques inherit Inspect as needed
...
A "late specialization" of a type is an ability specialization that
is not visible or needed until after type-specialization; i.e. during
monomorphization.
The `Inspect.toInspector` ability is special-cased for opaques that do
not claim or explicitly implement `Inspect`. In such cases, they are
treated as structural types, and given the immediate specialization of
`Inpect.inspectOpaque`.
However, prior to this commit, that special-casing would only be applied
during early specialiation (i.e. specializations visible during
generalized type inference). This commit applies the special case to
late specialization as well - the specialization decision for an opaque
type is always the specialization of the opaque type in the late case,
but now, when we go to look up the ambient lambda set of the
specialization, if it does not exist and corresponds to
`Inspect.toInspector`, we fall back to the immediate.
One concern I have here is that in a case like
```
Op := {}
x =
dbg (@Op {})
```
the specialization of `Inspect.toInspector` for `Op` should be known
early. Indeed, the program
```
Op := {}
x =
Inspect.toInspector (@Op {}) |> Inspect.apply (Inspect.init {}) |> Inspect.toDbgStr
```
Compiles fine without this change. This makes me suspect there is an
issue with the implementation of `dbg`'s desugaring. If possible, this
should be addressed sooner rather than later.
Closes #6127
2023-11-30 22:25:08 -06:00
Ching Pei Yang
f2f58b062d
Remove unneeded println arg
2023-11-30 16:17:38 +01:00
Brendan Hansknecht
9f1f0610d1
disable flaky glue test for now
2023-11-29 23:17:11 -08:00
Brendan Hansknecht
7b53f08e75
hopefully fix glue platform exit code issue
2023-11-29 22:45:12 -08:00
Brendan Hansknecht
88106d1659
add basic roc_dbg impl to c platforms
2023-11-29 22:02:27 -08:00
Brendan Hansknecht
3e66254b25
update zig and rust platforms to have correct roc_panic and roc_dbg
2023-11-29 21:49:34 -08:00
Becker A
c5ad8da2c0
Merge branch 'main' into patch-1
2023-11-29 22:09:12 -07:00
Brendan Hansknecht
1f14aa84a2
misc cleanup suggestions
2023-11-29 21:05:56 -08:00
Brendan Hansknecht
b62c9667d5
Correct typo
...
Co-authored-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
Signed-off-by: Brendan Hansknecht <Brendan.Hansknecht@gmail.com>
2023-11-29 21:05:49 -08:00
Brendan Hansknecht
f5fb01fd53
Get tests passing
...
Add roc_dbg to some platforms.
Also start updating some roc_panic impls.
2023-11-29 21:05:49 -08:00
Brendan Hansknecht
e6cc43492a
rip out old dbg and setup reasonable base debug location info
2023-11-29 21:05:49 -08:00
Brendan Hansknecht
3d6c140a30
get minimal roc_dbg
working
2023-11-29 21:05:49 -08:00
Brendan Hansknecht
b7f72eff86
add basic Dbg desugaring and LowLevelDbg
2023-11-29 21:05:48 -08:00
Richard Feldman
10470f33cc
Fix mono tests
2023-11-29 21:02:37 -05:00
Becker A
1cf2a4e738
Merge branch 'main' into patch-1
2023-11-29 18:17:02 -07:00
Brendan Hansknecht
ead90313d8
Merge pull request #5775 from roc-lang/inspect-derive
...
Derive Inspect
2023-11-29 08:22:27 -08:00
John Murray
3fed1ba129
filter out test folders in nix build
2023-11-28 23:07:25 -05:00
Brendan Hansknecht
248976d632
fix wasm tests
2023-11-28 16:40:43 -08:00
Brendan Hansknecht
c49046291a
misc cleanup suggestions
2023-11-28 16:40:43 -08:00
Brendan Hansknecht
1b7fdc9522
deal with Frac * -> Dec
2023-11-28 16:40:43 -08:00
Brendan Hansknecht
01032c3b11
remove empty list test case for inspect
2023-11-28 16:40:43 -08:00
Brendan Hansknecht
4b911524ac
update gen_abilities tests to include edge case
2023-11-28 16:40:43 -08:00
Brendan Hansknecht
0586f2bac0
more formatting
2023-11-28 16:40:43 -08:00
Brendan Hansknecht
77e55c88bf
update cli logging test
2023-11-28 16:40:43 -08:00
Brendan Hansknecht
759fa9b7a6
roc format
2023-11-28 16:40:42 -08:00
Brendan Hansknecht
83bf3cbd3a
update tests
2023-11-28 16:40:42 -08:00
Brendan Hansknecht
9b181e1b3f
add inspect implementation for dict and set
2023-11-28 16:40:42 -08:00
Brendan Hansknecht
79a58843b5
fix mono tests with wrapping custom function
2023-11-28 16:40:42 -08:00
Brendan Hansknecht
32c3d49e85
ignore unimlemented ability test case
2023-11-28 16:40:42 -08:00
Brendan Hansknecht
153b4c6df1
add walk function to list autoderive
2023-11-28 16:40:42 -08:00
Brendan Hansknecht
21b68a2e27
add a set of currently failing mono tests for inspect
2023-11-28 16:40:42 -08:00
Brendan Hansknecht
5e36395369
correct Inspect custom impl to use Inspect.apply
2023-11-28 16:40:42 -08:00
Brendan Hansknecht
4c25c60cdc
expand ui tests for inspect
2023-11-28 16:40:41 -08:00