Title here
Summary here
Our first program will print the classic “hello world” message. Here’s the full source code.
To run the program, save the code in hello-world.purs
and use spago
to build and run it.
Sometimes we’ll want to build our programs into a JavaScript file that can be executed directly with Node.js.
First, compile the code into JavaScript:
We can then execute the bundled JavaScript file directly using Node.js.
Now that we can run and build basic programs, let’s learn more about the language.