Commit graph

264 commits

Author SHA1 Message Date
Ayaz Hafiz
b8712bcb30
Weaken records in let-bindings
This change also means we must update the interface of `Dict.empty` and
`Set.empty` from

```
Dict.empty : Dict k v
```

to

```
Dict.empty : {} -> Dict k v
```
2023-01-14 15:33:51 +01:00
Richard Feldman
8606faa9db
Move builtin module-level docs to the top 2022-12-26 23:57:27 -05:00
Richard Feldman
5e3d808a61
roc format 2022-12-24 22:32:15 -05:00
Richard Feldman
39f60be377
Add builtins/main.roc for docs generation 2022-12-24 22:32:14 -05:00
Richard Feldman
4452b06b6d
Fix some builtin docs 2022-12-24 22:32:14 -05:00
Richard Feldman
4583985f33
Use a better List.range example for step 2022-12-09 09:08:38 -05:00
Richard Feldman
7d8b9b2323
Fix List.range type annotation bug 2022-12-09 06:53:10 -05:00
Richard Feldman
5cfa6d8e12
Expand List.range docs 2022-12-08 05:56:53 -05:00
Richard Feldman
da5d0bd815
Merge pull request #4686 from roc-lang/list-range
Switch to more expressive list.range
2022-12-08 02:51:42 -05:00
Brendan Hansknecht
6dd51039f0
add simple test that nat keys compile 2022-12-05 16:09:17 -08:00
Brendan Hansknecht
6aec9cf058
add the ability to hash Nats 2022-12-05 16:00:56 -08:00
Brendan Hansknecht
a5cb441d73
fix builtin formatting 2022-12-04 16:13:38 -08:00
Brendan Hansknecht
a5efc1f179
switch to more expressive list.range 2022-12-04 16:04:17 -08:00
Brendan Hansknecht
ab6c652360
manually do 128 bit multiplication to avoid bitshift and fix wasm tests 2022-12-03 13:17:36 -08:00
Brendan Hansknecht
ae58623f70
use crash to clearify unreachable state 2022-12-03 13:17:36 -08:00
Brendan Hansknecht
b4b18cda5a
fix formatting 2022-12-03 13:17:35 -08:00
Brendan Hansknecht
ac2380f6c8
swap based on dataIndex not raw hash map index 2022-12-03 13:17:35 -08:00
Brendan Hansknecht
8a30615a20
fix swap remove ordering 2022-12-03 13:17:35 -08:00
Brendan Hansknecht
4befccc6b4
expand Set test cases 2022-12-03 13:17:35 -08:00
Brendan Hansknecht
cad7d8b4e9
add walkUntil and use it to implement set equality 2022-12-03 13:17:35 -08:00
Brendan Hansknecht
28835d5bf3
some bug fixes 2022-12-03 13:17:34 -08:00
Brendan Hansknecht
4fc0dd9dd9
add a some tests and bug fixes 2022-12-03 13:17:34 -08:00
Brendan Hansknecht
02824e92fe
add Set implementation 2022-12-03 13:17:34 -08:00
Brendan Hansknecht
cb08dca6f1
Add an indexmap like dict to roc 2022-12-03 13:17:34 -08:00
Anton-4
2bf58a5bc3
fix take examples 2022-12-02 10:10:40 +01:00
Richard Feldman
2fd968e023
Fix Str.fromUtf8 type annotation 2022-11-14 12:02:33 -05:00
Richard Feldman
e6808b3252
Delete some redundant Str docs 2022-11-14 11:58:09 -05:00
Richard Feldman
4a1196a2bf
Use present tense more in Str docs 2022-11-14 11:38:33 -05:00
Richard Feldman
477dda3cc6
Use expect more in Str docs 2022-11-14 11:36:54 -05:00
Richard Feldman
3f8829e310
Linkify a list mention in Str docs 2022-11-14 11:34:24 -05:00
Richard Feldman
d814ed3c27
Link to Bool.true and Bool.false in docs 2022-11-14 11:33:32 -05:00
Richard Feldman
c23e23abf5
Fix some Str docs 2022-11-14 11:33:17 -05:00
Richard Feldman
d9774109f1
Merge remote-tracking branch 'origin/main' into str-docs 2022-11-14 11:30:31 -05:00
Richard Feldman
8a47ebd22e
Some more Str docs changes 2022-11-14 09:42:59 -05:00
Christopher Duncan
4b808100b4
Amend List.walk documentation with latest syntax 2022-11-05 06:16:27 -04:00
Richard Feldman
ed82e80a2b
Drop unnecessary isEq true 2022-11-03 23:16:30 -04:00
Richard Feldman
ee9b62d8ae
Don't use backpassing on List.any 2022-11-03 23:16:28 -04:00
Christopher Duncan
c0822fdab2
Remove iterate from exported functions 2022-11-02 16:47:09 -04:00
Ayaz Hafiz
cfe7c8e5ef
Warn on the presence of unnecessary wildcards in output positions 2022-10-31 09:38:20 -05:00
Richard Feldman
719387bb0a
Merge pull request #4387 from lukewilliamboswell/std-lib-bool
updated docs for Bool.roc
2022-10-26 19:43:51 -07:00
Luke Boswell
90a9103413
fix doc comments examples breaking tests 2022-10-25 21:20:00 +11:00
Luke Boswell
344ffc5542
fix the formatting for CI 2022-10-25 19:28:49 +11:00
Luke Boswell
d4d654f850
add spaces to doc comments to format correctly when rendered 2022-10-25 19:24:32 +11:00
Anton-4
c7e46df57d
minor corrections
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-10-25 10:00:33 +02:00
Anton-4
d342815494
add space
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-10-25 10:00:09 +02:00
Luke Boswell
01da174c2f
Merge remote-tracking branch 'upstream/main' into std-docs-box-and-dict 2022-10-25 18:15:14 +11:00
Luke Boswell
3d2bdff0e1
adding more descriptions for Dict.roc 2022-10-25 18:09:00 +11:00
Luke Boswell
74a337d508
updated description for Boxing from Zulip discussion 2022-10-25 17:20:27 +11:00
Luke Boswell
dc77e9a6cd
formated Bool.roc for CI 2022-10-25 17:07:34 +11:00
Ayaz
89f14e73a0
Merge pull request #4358 from roc-lang/derive-opaque-defs
Auto-derive ability implementations for opaques in canonicalization
2022-10-24 13:24:51 -05:00