Hello, World!
Printing Hello World to the command line using the basic-cli platform:
Code
app "hello-world" packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.7.0/bkGby8jb0tmZYsy2hg1E_B2QrCgcSTxdUlHtETwm5m4.tar.br" } imports [pf.Stdout] provides [main] to pf main = Stdout.line "Hello, World!"
Output
Run this from the directory that has main.roc
in it:
$ roc run Hello, World!