Commit graph

7268 commits

Author SHA1 Message Date
Brendan Hansknecht
2ef97fc5a1
update mono tests due to List.sublist change 2023-11-20 21:09:12 -08:00
Brendan Hansknecht
2de96ed5a8
add spread as test 2023-11-20 21:09:12 -08:00
Brendan Hansknecht
9cf0d5366f
add test case for exhaustiveness checking of list with rest and front and back 2023-11-20 21:09:12 -08:00
Brendan Hansknecht
bf7be1533b
fix indexing 2023-11-20 21:09:12 -08:00
Ayaz Hafiz
f72b8c2c30
Specialize polymorphic lists against non-polymorphic ones 2023-11-20 21:09:11 -08:00
Brendan Hansknecht
37a8bbd87c
correct list pattern match checking to add extra anythings for patterns with rest 2023-11-20 21:09:11 -08:00
Brendan Hansknecht
ee10af2c68
add currently broken test case for list .. as rest 2023-11-20 21:09:11 -08:00
Brendan Hansknecht
3e39a32f0e
cleanup reversed stores to make logic clearer 2023-11-20 21:09:11 -08:00
Brendan Hansknecht
2fb093d4c8
clippy 2023-11-20 21:09:11 -08:00
Brendan Hansknecht
26afbbe8f6
remove redunant list.sublist check 2023-11-20 21:09:11 -08:00
Brendan Hansknecht
223efe4a2d
fix using .. as name in list patterns 2023-11-20 21:09:11 -08:00
Brendan Hansknecht
03b3b4e341
add check tests to avoid basic-cli files going stale 2023-11-20 19:33:23 -08:00
Brendan Hansknecht
ffda01e80b
update all examples to basic-cli version and mark broken examples 2023-11-20 15:36:15 -08:00
Brendan Hansknecht
f727aea875
Remove stale copy of basic-cli from the repo
It is outdated and source of bugs for users.
There should only exist one form of basic-cli.

There are still plently of local platforms if we need them for testing.
On top of that, more can be added to cli_test_examples if needed.
2023-11-20 14:59:13 -08:00
Richard Feldman
f128ea3644
Fix copy-code buttons on /tutorial 2023-11-20 06:47:22 -05:00
Richard Feldman
b725a114cf
Remove fancy quote from rockin' roc repl 2023-11-18 22:16:14 -05:00
Richard Feldman
91c528193d
cargo fmt 2023-11-18 21:33:38 -05:00
Richard Feldman
89be091f87
Order modules in docs sidebar based on exposes 2023-11-18 21:02:49 -05:00
Richard Feldman
9a12175a96
Drop redundant exposed Set 2023-11-18 21:02:33 -05:00
Richard Feldman
93fe2409e7
Fix link hover color on generated docs 2023-11-18 20:09:51 -05:00
Richard Feldman
06e15973fd
Don't auto-indent doc headings
It looks bad if there are newlines in there
2023-11-18 20:04:09 -05:00
Richard Feldman
b173f8368e
Update docs styles 2023-11-18 20:03:40 -05:00
Richard Feldman
b8f89a121b
Fix some generated documentation styles 2023-11-18 19:48:25 -05:00
Richard Feldman
a2fdd090bd
Merge pull request #5994 from jecaro/fix-op-handling-in-type-missmatch-errors
Show the right fct name in type error messages
2023-11-18 07:42:05 -05:00
Richard Feldman
cc41f3a2f0
Merge pull request #5954 from yukiomoto/fix-num-related-crash
Fix crash caused by number related type error in repl
2023-11-17 20:35:33 -05:00
jecaro
2ffe2fd2dd
fix golden tests accordingly 2023-11-17 10:51:27 +01:00
jecaro
c858031f74
Show the right fct name in type error messages 2023-11-16 16:44:55 +01:00
Brendan Hansknecht
d01fc9156c
add missing traits to RocResult 2023-11-14 18:16:04 -08:00
Anton-4
7b1f2d2ac1
Merge pull request #5982 from jecaro/error-msg-non-utf8
Set a better error msg for non uft8 encoded files
2023-11-14 16:31:24 +01:00
jecaro
0781232940
Set a better error msg for non uft8 encoded files 2023-11-14 15:22:22 +01:00
Ayaz
1c1231bc11
Merge pull request #5975 from roc-lang/fix-exists
Make downloading packages more resilient
2023-11-12 21:02:11 -06:00
Richard Feldman
79e87339b3
Merge pull request #5974 from roc-lang/drop-old-glue
Remove obsolete rust_glue and tests
2023-11-12 21:20:14 -05:00
Brendan Hansknecht
3c68221da5
add test case for glue generation of closures 2023-11-12 11:15:07 -08:00
Brendan Hansknecht
97a7c30eb9
remove constant function name 2023-11-11 16:17:44 -08:00
Brendan Hansknecht
72ddfb036d
correctly handle functions that don't return functions 2023-11-11 15:56:18 -08:00
Brendan Hansknecht
681a130b54
add file header to glue lib file 2023-11-11 15:56:17 -08:00
Brendan Hansknecht
a474423a48
correct the closure rust glue to deal with size and bytes 2023-11-11 15:56:17 -08:00
Richard Feldman
896c010645
Move test_reporting into load to break cyclic dep 2023-11-10 16:16:54 -05:00
Richard Feldman
6bd9fcd6e9
roc_solve shouldn't depend on itself 2023-11-10 16:04:06 -05:00
Richard Feldman
2a4ede7f08
Make downloading packages more resilient 2023-11-10 14:52:34 -05:00
Richard Feldman
8e1e9e216f
Remove obsolete rust_glue and tests 2023-11-10 14:31:18 -05:00
Richard Feldman
2d91dbc4ab
Merge pull request #5971 from roc-lang/more-homepage-improvements
More homepage improvements
2023-11-10 06:28:40 -05:00
Richard Feldman
fb17d89dfc
Format some js 2023-11-09 22:20:07 -05:00
Anton-4
6212820249
use List * in len, withCapacity, isEmpty...
for consistency with Dict and Set

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-11-08 19:50:21 +01:00
Richard Feldman
6f6ab2bba7
Merge pull request #5963 from roc-lang/update-num-docs
Update some Num docs
2023-11-07 21:31:10 -05:00
Yuki Omoto
8580b62f7e
Add runtime error to bring an error to roc instead of using wrong number value just to continue the program 2023-11-08 00:38:03 +09:00
Yuki Omoto
75dff53cc8
Fix crash caused by number related type error
This fixes an issue where number related type errors cause a crash.
For example, using a negative number for `Nat` like List.dropAt [1, 2, 3] -1` as in #5916.
so as f64 number.
2023-11-08 00:38:03 +09:00
Brendan Hansknecht
e6f5ac5d2a
typo and clippy 2023-11-06 21:04:50 -08:00
Brendan Hansknecht
23c2b15115
also add static lib support with fallback to object file 2023-11-06 21:04:50 -08:00
Brendan Hansknecht
1085be396e
add fallback to legacy host if preprocessed host is missing from prebuilt platform 2023-11-06 21:04:50 -08:00