Hello, World!

Printing Hello World to the command line using the basic-cli platform:

Code

app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.16.0/O00IPk-Krg_diNS2dVWlI0ZQP794Vctxzv0ha96mK0E.tar.br" }

import pf.Stdout

main =
    Stdout.line! "Hello, World!"

Output

Run this from the directory that has main.roc in it:

$ roc main.roc
Hello, World!