Skip to content

Commit 5a8f4d7

Browse files
committed
use basic-cli 0.19.0 link
1 parent 77a678b commit 5a8f4d7

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

www/content/docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
- [builtins](/builtins) - docs for modules built into the language—`Str`, `Num`, etc.
44
- [basic-webserver](https://roc-lang.github.io/basic-webserver/) - a platform for making Web servers ([source code](https://github.com/roc-lang/basic-webserver))
5-
- [basic-cli](https://roc-lang.github.io/basic-cli/0.18.0) - a platform for making command-line interfaces ([source code](https://github.com/roc-lang/basic-cli))
5+
- [basic-cli](https://roc-lang.github.io/basic-cli/0.19.0) - a platform for making command-line interfaces ([source code](https://github.com/roc-lang/basic-cli))
66
- [plans](/plans) - current plans for future changes to the language
77

88
In the future, a language reference will be on this page too.

www/content/platforms.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ Something that sets Roc apart from other programming languages is its <span clas
77
Here is a Roc application that prints `"Hello, World!"` to the command line:
88

99
```roc
10-
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br" }
10+
app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br" }
1111
12-
import pf.Stdout
12+
import cli.Stdout
1313
14-
main =
15-
Stdout.line "Hello, World!"
14+
main! = |_args|
15+
Stdout.line!("Hello, World!")
1616
```
1717

1818
Every Roc application, including this one, is built on a _platform_. This application happens to be built on a platform called [basic-cli](https://github.com/roc-lang/basic-cli), which is a platform for building command-line interfaces.

www/content/tutorial.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Let's move out of the REPL and create our first Roc application!
146146
Make a file named `main.roc` and put this in it:
147147

148148
```roc
149-
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.18.0/0APbwVN1_p1mJ96tXjaoiUCr8NBGamr8G8Ac_DrXR-o.tar.br" }
149+
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br" }
150150
151151
import pf.Stdout
152152
@@ -1529,7 +1529,7 @@ Besides being built into the compiler, the builtin modules are different from ot
15291529
Let's take a closer look at the part of `main.roc` above the `main` def:
15301530

15311531
```roc
1532-
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.18.0/0APbwVN1_p1mJ96tXjaoiUCr8NBGamr8G8Ac_DrXR-o.tar.br" }
1532+
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br" }
15331533
15341534
import pf.Stdout
15351535
```
@@ -1663,7 +1663,7 @@ We'll use these four operations to learn about effects.
16631663
Let's revisit that first application.
16641664

16651665
```roc
1666-
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.18.0/0APbwVN1_p1mJ96tXjaoiUCr8NBGamr8G8Ac_DrXR-o.tar.br" }
1666+
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br" }
16671667
16681668
import pf.Stdout
16691669
@@ -1692,7 +1692,7 @@ Note that to call this `Stdin.line!`, you need to provide the unit value `{}` as
16921692
Let's change `main!` to read a line from `stdin`, and then print what we got:
16931693

16941694
```roc
1695-
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.18.0/0APbwVN1_p1mJ96tXjaoiUCr8NBGamr8G8Ac_DrXR-o.tar.br" }
1695+
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br" }
16961696
16971697
import pf.Stdout
16981698
import pf.Stdin
@@ -1786,7 +1786,7 @@ In other words, adding this annotation effectively opted us out of `basic-cli`'s
17861786
Here's one way we can handle those errors:
17871787

17881788
```roc
1789-
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.18.0/0APbwVN1_p1mJ96tXjaoiUCr8NBGamr8G8Ac_DrXR-o.tar.br" }
1789+
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br" }
17901790
17911791
import pf.Stdout
17921792
import pf.Stdin
@@ -1838,7 +1838,7 @@ Furthermore, if a variable can't possibly contain any useful information, then w
18381838
Let's revisit an earlier example:
18391839

18401840
```roc
1841-
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.18.0/0APbwVN1_p1mJ96tXjaoiUCr8NBGamr8G8Ac_DrXR-o.tar.br" }
1841+
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br" }
18421842
18431843
import pf.Stdout
18441844
import pf.Stdin
@@ -1884,7 +1884,7 @@ If an error happended here, we wouldn't know which effectful function was the ca
18841884
One option is to "tag the error" using `Result.map_err` to wrap the error in a [tag](#tags) like so:
18851885

18861886
```roc
1887-
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.18.0/0APbwVN1_p1mJ96tXjaoiUCr8NBGamr8G8Ac_DrXR-o.tar.br" }
1887+
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br" }
18881888
18891889
import pf.Stdout
18901890
import pf.Stdin
@@ -1924,7 +1924,7 @@ The above example could be rewritten to the following with no change to how it
19241924
would behave:
19251925

19261926
```roc
1927-
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.18.0/0APbwVN1_p1mJ96tXjaoiUCr8NBGamr8G8Ac_DrXR-o.tar.br" }
1927+
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br" }
19281928
19291929
import pf.Stdout
19301930
import pf.Stdin

0 commit comments

Comments
 (0)