Hello, World!
Printing Hello World to the command line using echo!:
Code
Validated with Roc nightly-2026-11-09-9e85de7.
main! = |_| { echo!("Hello, World!\n") Ok({}) }
Output
Run this from the directory that has main.roc in it:
$ roc main.roc Hello, World!