Commit graph

132 commits

Author SHA1 Message Date
Richard Feldman
7e446d1b0d
Eliminate @memcpy from Str.trim functions 2022-07-18 10:28:53 -04:00
Richard Feldman
fd65f12cad
Merge pull request #3567 from rtfeldman/result-try
Rename `Result.after` to `Result.try`, `Result.afterErr` to `Result.onErr`
2022-07-17 22:47:02 -04:00
Ayaz
d354dd177a
Merge pull request #3564 from rtfeldman/fix-json
JSON doesn't allow trailing commas
2022-07-17 21:43:01 -05:00
Richard Feldman
145bd8b4a2
Rename Result.afterErr to Result.onErr 2022-07-17 21:37:32 -04:00
Richard Feldman
0acab0eef3
Rename Result.after to Result.try 2022-07-17 17:25:50 -04:00
Richard Feldman
518b21c3f8
Rename Json.format to Json.toUtf8 2022-07-17 15:21:27 -04:00
Richard Feldman
4af506c530
JSON doesn't allow trailing commas 2022-07-17 15:18:52 -04:00
Richard Feldman
31f7d72ce0
Merge pull request #3529 from rtfeldman/derive-lists
Derive encoding for lists
2022-07-17 14:28:44 -04:00
Richard Feldman
f575807834
Merge remote-tracking branch 'origin/trunk' into outdent-infix 2022-07-16 16:08:36 -04:00
Ayaz Hafiz
863cdfe2a1
Format JSON 2022-07-16 12:31:08 -04:00
Ayaz Hafiz
e06e83be05
Fix JSON list encoding bug 2022-07-16 12:31:07 -04:00
Brian Carroll
dae8eccb70
Fix a comment in Str.roc 2022-07-16 08:26:19 +01:00
Folkert
b9ebd4fa27 Merge remote-tracking branch 'origin/trunk' into pretty-expect-output 2022-07-15 09:12:04 +02:00
Folkert de Vries
1b1b63aad0
Merge branch 'trunk' into assoc-list-dict 2022-07-14 16:47:50 +02:00
Richard Feldman
7ed35eca50
roc format builtins 2022-07-13 23:16:09 -04:00
Richard Feldman
da7c7ac5f2
Merge pull request #3525 from rtfeldman/3522
Num.toStr for f32, f64, Dec
2022-07-13 21:30:05 -04:00
Folkert
06938429a1
Merge branch 'assoc-list-dict' into pretty-expect-output 2022-07-14 00:39:01 +02:00
Ayaz Hafiz
b50974e4ee
Update zig tests 2022-07-13 17:20:47 -04:00
Folkert
e6019a1eca
formatting 2022-07-13 23:11:58 +02:00
Richard Feldman
77afe0c1f1
Merge pull request #3503 from rtfeldman/string-memory-problems
String memory problems
2022-07-13 15:17:28 -04:00
Folkert
5763248b44
Merge remote-tracking branch 'origin/trunk' into assoc-list-dict 2022-07-13 20:44:28 +02:00
Ayaz Hafiz
980c3f1421
Use decimal formatting for float Num.toStr 2022-07-13 12:35:49 -04:00
Richard Feldman
25facfa9c6
Expose capacity builtins 2022-07-13 12:19:37 -04:00
Ayaz Hafiz
66b8d145a9
Support Num.toStr for dec 2022-07-13 12:13:21 -04:00
Ayaz Hafiz
b7c312d449
Support Num.toStr for f32, f64 2022-07-13 12:13:01 -04:00
Folkert
d33beedcd0
add the zig bits for expects 2022-07-13 14:40:07 +02:00
Folkert
6c26d8812f
remove dict/hash stuff from the zig builtins 2022-07-13 11:59:46 +02:00
Folkert
cf69d41a7b
implement set operations on dict 2022-07-13 11:33:39 +02:00
Folkert
79f8ae4e69
make Set/Dict mostly work 2022-07-13 11:15:57 +02:00
Folkert
9a51737a47
fix use after free 2022-07-13 10:34:30 +02:00
Richard Feldman
5f430034f3
roc format List.roc 2022-07-12 22:04:55 -04:00
Folkert
4d33e32078
comment 2022-07-13 01:09:03 +02:00
Folkert
66c0b7d9fd
formatting 2022-07-13 01:00:27 +02:00
Folkert
f9d8e01561
implement Dict/Set completely in roc 2022-07-13 00:35:20 +02:00
Folkert
bc24841921
Str.fromUtf8Range: take list argument as owned; make sure it's decremented in the small string case 2022-07-12 22:57:48 +02:00
Folkert
32207beedf
List.sublist: make sure input list is decremented if slice length is 0 2022-07-12 22:51:44 +02:00
Richard Feldman
f5f137982c
Merge pull request #3432 from rtfeldman/fmt-multiline-when
Format multiline `when` branches
2022-07-12 12:54:11 -04:00
Richard Feldman
f5fac8230f Prune some unused dependencies 2022-07-11 20:51:41 -04:00
Richard Feldman
d2e5efadc0
roc format builtins 2022-07-11 13:14:34 -04:00
Folkert
855d49004c
remove std.rs 2022-07-10 23:16:07 +02:00
Ayaz Hafiz
5e3ccc30cb
Inject List.len into Num, and properly import List in Str 2022-07-10 16:03:30 -04:00
Ayaz Hafiz
1646e84a77
Make json import str 2022-07-10 13:15:30 -04:00
Ayaz Hafiz
f06c2af4f1
Make sure Json.roc imports List 2022-07-10 10:32:28 -04:00
Marten/Qqwy
620d719661
Run the formatter 2022-07-09 14:28:30 +02:00
Marten/Qqwy
906aa5bbb0
Fix implementation and tests for Result.after and Result.afterErr 2022-07-09 14:28:30 +02:00
Marten/Qqwy
5632d07179
Pure Roc implementation of Result.alterErr 2022-07-09 14:28:29 +02:00
Folkert
e8530eaca5
improve lowlevel unwrapping 2022-07-08 22:13:13 +02:00
Folkert
0f86886ab7
Merge branch 'list-unsafe-append' into can-builtins-cleanup 2022-07-08 15:38:02 +02:00
Folkert
c3914883be
format our roc code 2022-07-08 15:00:10 +02:00
Folkert
972d652d5d
Merge remote-tracking branch 'origin/trunk' into list-unsafe-append 2022-07-08 13:57:09 +02:00