Website | Source

Building an application

Make a file named main.roc and put this in it:

app "hello"
    packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.2.0/8tCohJeXMBUnjo_zdMq0jSaqdYoCWJkWazBd4wa8cQU.tar.br" }
    imports [pf.Stdout]
    provides [main] to pf

main =
    Stdout.line "I'm a Roc application!"

Try running this with:

roc dev


Tags: language   functional   wasm   native  

Last modified 07 October 2024