mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
easier hello world
This commit is contained in:
parent
1285a24565
commit
e0d22a2768
4 changed files with 9 additions and 5 deletions
|
|
@ -41,9 +41,10 @@ which includes the Roc compiler and some helpful utilities.
|
|||
sudo dnf install glibc-devel binutils
|
||||
```
|
||||
|
||||
1. Run [hello world](https://github.com/roc-lang/examples/blob/main/examples/HelloWorld/main.roc):
|
||||
1. Download and run hello world:
|
||||
|
||||
```sh
|
||||
curl -OL https://raw.githubusercontent.com/roc-lang/examples/refs/heads/main/examples/HelloWorld/main.roc
|
||||
roc main.roc
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -33,9 +33,10 @@ which includes the Roc compiler and some helpful utilities.
|
|||
1. Check everything worked by executing `roc version`
|
||||
|
||||
|
||||
1. Run [hello world](https://github.com/roc-lang/examples/blob/main/examples/HelloWorld/main.roc):
|
||||
1. Download and run hello world:
|
||||
|
||||
```sh
|
||||
curl -OL https://raw.githubusercontent.com/roc-lang/examples/refs/heads/main/examples/HelloWorld/main.roc
|
||||
roc main.roc
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -26,9 +26,10 @@ which includes the Roc compiler and some helpful utilities.
|
|||
|
||||
1. Check everything worked by executing `roc version`
|
||||
|
||||
1. Run [hello world](https://github.com/roc-lang/examples/blob/main/examples/HelloWorld/main.roc):
|
||||
1. Download and run hello world:
|
||||
|
||||
```sh
|
||||
curl -OL https://raw.githubusercontent.com/roc-lang/examples/refs/heads/main/examples/HelloWorld/main.roc
|
||||
roc main.roc
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,11 @@
|
|||
|
||||
1. [Build Roc from source](https://github.com/roc-lang/roc/blob/main/BUILDING_FROM_SOURCE.md)
|
||||
|
||||
1. Run [hello world](https://github.com/roc-lang/examples/blob/main/examples/HelloWorld/main.roc):
|
||||
1. Download and run hello world:
|
||||
|
||||
```sh
|
||||
roc hello.roc
|
||||
curl -OL https://raw.githubusercontent.com/roc-lang/examples/refs/heads/main/examples/HelloWorld/main.roc
|
||||
roc main.roc
|
||||
```
|
||||
|
||||
## Next Steps
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue