Commit graph

103 commits

Author SHA1 Message Date
ayazhafiz
3456a44742
Only compile and run expects that belong to the same package
In particular, don't run expects that come from modules with a different
package qualification (including subpackages; we can loosen this
restriction later), or builtins when run on userspace apps/interfaces.

Closes #3722
2022-08-28 10:16:55 -05:00
Ayaz Hafiz
29793fac32
Begin working on JSON record decoding
And we've hit a borrow panic 😍
2022-08-15 11:11:29 -05:00
Ross Smyth
80f14f61df
Add safe layout reprs and safety comments about layout 2022-08-13 03:49:12 -04:00
Ayaz Hafiz
4bbc6b74fc
Add derivability obligation checking for Decode 2022-08-02 14:31:16 -05:00
Ayaz
fa14146054
Merge pull request #3531 from rtfeldman/decode
Very basic Decode.roc in the standard library
2022-08-02 14:26:28 -05:00
Ayaz Hafiz
1f4099449d
Add Decoder module symbol 2022-08-01 08:09:22 -05:00
Folkert
01ec0d7bda
formatting 2022-07-28 22:27:30 +02:00
Folkert
2514e7d845
implement non-recursive tags 2022-07-28 22:02:21 +02:00
Ayaz
6b6f240acb
Merge pull request #3589 from rtfeldman/can-abilities3
Canonicalize syntactic abilities: Part 3 - solving
2022-07-25 21:48:14 -05:00
Richard Feldman
97720c4090
Drop unexposed List symbol
List.iterate doesn't need a manual Symbol entry because
it's not exposed.
2022-07-25 19:15:37 +02:00
Richard Feldman
baa9176363
Update List builtin symbols 2022-07-25 19:15:34 +02:00
Richard Feldman
f3b8025d8d
Rename List.find and findIndex to include 'First' 2022-07-25 19:15:32 +02:00
Ayaz Hafiz
6035e45f25
Store derivable ability members statically 2022-07-25 09:09:00 -04:00
Ayaz
d5f36a6780
Merge pull request #3568 from rtfeldman/list-maptry 2022-07-18 15:22:38 -05:00
Richard Feldman
08ead32be9
Add List.mapTry 2022-07-17 21:53:01 -04:00
Richard Feldman
8036533749
Update symbols 2022-07-17 21:37:32 -04:00
Folkert de Vries
1b1b63aad0
Merge branch 'trunk' into assoc-list-dict 2022-07-14 16:47:50 +02:00
Ayaz
a9243720da
Merge pull request #3496 from rtfeldman/derive-w-mono
Monomorphize and compile derived implementations
2022-07-14 07:45:21 -05:00
Ayaz Hafiz
9b7950f765
Wrap opaque types in the repl with the appropriate opaque wrapper
Closes #3504
2022-07-13 17:46:04 -04:00
Folkert
5763248b44
Merge remote-tracking branch 'origin/trunk' into assoc-list-dict 2022-07-13 20:44:28 +02:00
Richard Feldman
25facfa9c6
Expose capacity builtins 2022-07-13 12:19:37 -04:00
Ayaz Hafiz
df9bcb1a0c
Use Derived_synth for synthesizing implementations, and Derived_gen for codegen 2022-07-13 08:47:39 -04: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
f9d8e01561
implement Dict/Set completely in roc 2022-07-13 00:35:20 +02:00
ayazhafiz
d20c183390
Merge remote-tracking branch 'origin/trunk' into rust61 2022-07-09 12:52:49 -04:00
Marten/Qqwy
699ab5c646
Symbol definition and tests 2022-07-09 14:28:30 +02:00
Folkert
e8530eaca5
improve lowlevel unwrapping 2022-07-08 22:13:13 +02:00
Folkert
41768bfa97
new approach for defining our builtins 2022-07-08 13:46:34 +02:00
Folkert
56c9787e8f
List.appendUnsafe and List.reserve 2022-07-07 22:40:28 +02:00
Folkert
a1de31d99e
Merge remote-tracking branch 'origin/trunk' into rust61 2022-07-06 01:42:50 +02:00
Folkert
3a30e77726
Merge remote-tracking branch 'origin/trunk' into list-unreachable 2022-07-06 01:38:50 +02:00
Richard Feldman
cd2cf045fa
Merge pull request #3403 from rtfeldman/clippy-1.62
updates for clippy 1.62
2022-07-05 18:26:52 -04:00
Folkert
9c856fd5ae
updates for clippy 1.62 2022-07-05 12:39:27 +02:00
Folkert
6d7c329698
Str.walkScalars 2022-07-04 18:01:19 +02:00
Folkert
9c41a4d442
str.appendScalar 2022-07-04 16:27:04 +02:00
Folkert
ab721dd3c1
Str.reserve 2022-07-04 14:57:20 +02:00
Folkert
5904934887
rename countBytes -> countUtf8Bytes 2022-07-03 21:49:01 +02:00
Folkert
65f80b61c6
add Str.walkUtf8WithIndex 2022-07-03 20:24:08 +02:00
Folkert
eeb271d07f
Str.splitFirst and Str.splitLast 2022-07-03 19:47:06 +02:00
Folkert
be3800d7fa
add substringUnsafe roc function 2022-07-03 17:15:25 +02:00
Anton-4
46bdd4072a
writeln->println, ignore clippy 2022-07-03 14:48:03 +02:00
Folkert
3cd56c3184
add Str.countBytes 2022-07-03 14:16:47 +02:00
Anton-4
7c93d237ce
Merge branch 'trunk' of github.com:rtfeldman/roc into rust61 2022-07-03 14:14:24 +02:00
Folkert
1f943a5452
add Str.getUnsafe 2022-07-03 13:46:22 +02:00
Folkert
762258ae20
Merge remote-tracking branch 'origin/trunk' into list-unreachable 2022-07-03 02:54:15 +02:00
Richard Feldman
af05723d35
Rename startsWithCodePt to startsWithScalar 2022-07-02 15:51:33 -04:00
Folkert
506e374642
List.unreachable 2022-07-02 19:40:05 +02:00
Richard Feldman
acb7cf99e1
Add Str.toScalars builtin 2022-07-02 13:12:12 -04:00
Anton-4
b74fc3554b
Merge branch 'trunk' of github.com:rtfeldman/roc into crates-folder 2022-07-02 12:35:19 +02:00