Isaac Van Doren
d99c347998
rename Str.split
2024-11-15 21:12:23 -06:00
Isaac Van Doren
d0735f2661
remove List.split
2024-11-15 20:31:37 -06:00
Isaac Van Doren
efae03240e
fix ordering again
2024-11-12 22:12:02 -06:00
Isaac Van Doren
ae4d682806
change symbol ordering
2024-11-12 21:28:10 -06:00
Isaac Van Doren
8f0ca0c91c
fix numbering
2024-11-12 21:24:24 -06:00
Isaac Van Doren
f33a483502
merge main
2024-11-12 20:55:45 -06:00
Isaac Van Doren
ec59acea89
add List.splitOnList
2024-11-10 18:34:34 -06:00
Isaac Van Doren
0a7e98ab65
add List.splitOn
2024-11-10 18:20:31 -06:00
Agus Zubiaga
6d0cec253d
Add List.forEachTry! builtin
2024-11-09 23:13:49 -03:00
Agus Zubiaga
ce568c01c1
Add List.forEach! builtin
2024-11-09 22:23:19 -03:00
Agus Zubiaga
644702a2b3
Add Result.onErr! builtin
2024-11-09 22:17:33 -03:00
Isaac Van Doren
45b50bd131
add List.splitAt
2024-11-09 17:16:21 -06:00
Agus Zubiaga
e3c6b756d3
Make sure to drop suffix from symbols exposed to the host
2024-11-07 18:54:23 -03:00
Agus Zubiaga
a2f940be4e
Use byte literal instead of cast and ignore too_many_args
2024-11-07 18:54:22 -03:00
Agus Zubiaga
215de707fa
Report unsuffixed record literal field with effectful function
2024-11-07 18:54:20 -03:00
Agus Zubiaga
b80f44738f
Switch fx mode based on platform main too
2024-11-07 18:54:16 -03:00
Agus Zubiaga
2c8571537e
Get suffix from IdentId or Symbol
...
IdentId will now reserve the MSB for flagging whether the ident
is suffixed with a `!`.
We will use this later to constrain identifiers to be effectful or pure.
2024-11-07 18:54:16 -03:00
Sam Mohr
308defac46
Implement the try
keyword with desugaring
2024-11-01 17:34:11 -07:00
Luke Boswell
760af4a04e
Merge remote-tracking branch 'remote/main' into str-dropping
2024-09-29 14:31:04 +10:00
Sam Mohr
2da08be8ef
Remove old record builder syntax
2024-09-21 04:44:44 -07:00
Anton-4
4662c82ea8
cleanup pf.Task
2024-09-16 18:12:20 +02:00
Elias Mulhall
49a3f2d68e
Extract helper function to get the IdentIds related to a symbol's module
2024-09-03 14:09:16 -04:00
Elias Mulhall
f356f6f7a0
Do not display generated symbol names in error messages
...
When an error message reports on a symbol that was generated during
canonicalization, use text like "This value" instead of "This `123`
value". Generated symbols use the identifier index as the symbol name,
since valid Roc variables cannot begin with a number so there's no
chance of collision. We don't want to display generated symbols to the
user, so when building the error message we check if the symbol's name
starts with a digit.
2024-09-03 14:00:46 -04:00
Anton-4
3c679f6338
Merge branch 'main' into lower-module-params
2024-08-30 16:29:46 +02:00
Agus Zubiaga
287a8fa2e7
Merge branch 'main' into lower-module-params
2024-08-28 08:50:40 -03:00
Agus Zubiaga
8b9cb22f49
Add custom CalledVia for naked param vars
2024-08-27 13:39:20 -03:00
Sam Mohr
12df3a04de
Merge attempt
2024-08-19 23:34:05 -07:00
Sam Mohr
7c7485bb04
Merge pull request #7005 from smores56/deprecate-backpassing
...
Deprecate backpassing to prepare for eventual removal
2024-08-18 08:08:29 -04:00
Luke Boswell
4be6c5d4ce
implement Str.dropPrefix and Str.dropSuffix
2024-08-17 17:21:37 +10:00
Sam Mohr
50f6e11423
Deprecate backpassing to prepare for eventual removal
2024-08-16 22:36:04 -07:00
Sam Mohr
e169529ede
Remove barely used zstd dependency
2024-08-16 10:10:29 -07:00
Sam Mohr
3bc5c1dc12
Combine ! and ? into single TrySuffix AST node
2024-08-14 22:14:08 -07:00
Luke Boswell
2eb3e38b7f
Merge remote-tracking branch 'remote/main' into result-map-builtins
2024-08-14 17:26:10 +10:00
Luke Boswell
7aebee8c94
implement Result.mapBoth and Result.map2 builtins
2024-08-14 13:16:24 +10:00
Agus Zubiaga
762799052e
Merge branch 'main' into typecheck-module-params
2024-08-07 18:55:33 -03:00
Sam Mohr
bdb50912b8
Rename Task.seq -> Task.sequence
2024-07-31 13:35:36 -07:00
Luke Boswell
eca453d07f
Merge remote-tracking branch 'remote/main' into builtin-task
2024-07-29 16:05:51 +10: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
Brendan Hansknecht
82764dc697
switch to passing the copy function into zig (implement llvm)
2024-07-21 19:04:57 -07:00
Luke Boswell
b489c44b19
Merge remote-tracking branch 'remote/main' into builtin-task
2024-07-19 19:51:50 +10:00
Brendan Hansknecht
c734a27b59
move List.map* into roc
2024-07-13 10:39:56 -07:00
Brendan Hansknecht
e92cf1be42
Revert "attempt to correct list refcount generation in dev backends"
...
This reverts commit 0854a1a53a2db441c648140bdd24de91125ec645.
2024-07-13 10:39:54 -07:00
Brendan Hansknecht
36bc8bfac4
attempt to correct list refcount generation in dev backends
2024-07-13 10:39:54 -07:00
Brendan Hansknecht
48eb9c31a9
update list generated refcounting functions for dev and wasm
2024-07-13 10:39:53 -07:00
Sam Mohr
fe1b6d71fc
Update from PR comments
2024-07-07 18:33:20 -07:00
Sam Mohr
f415017c90
Implement new builder syntax alongside old one
2024-07-07 03:28:59 -07:00
Agus Zubiaga
f80cb341a6
Move ScopeModules to can
2024-07-05 21:35:52 -03:00
Sam Mohr
6f5f5f431e
Merge branch 'main' into builtin-task
2024-07-03 13:37:46 -07:00
Agus Zubiaga
13ba59a4cb
Fix hang on qualified import with builtin name
2024-07-03 12:40:53 -03:00
Sam Mohr
f61b303a59
Merge branch 'main' into builtin-task
2024-07-03 00:42:48 -07:00