Installation of tools
Tools needed for purescript project can be installed via npm:
npm install pulp purescript bower
Most of purescript packages can be installed with bower, for example AFF library:
bower install purescript-aff
After installation, you should add pulp to path:
Now you can initialize project:
To generate JS file:
pulp browserify -t script.js
To build project and run:
To launch REPL with project’s environment:
If you know Haskell you will easily understand PS, just see what is different.
===Building UI with PS===
There’s nice module for PureScript where you can easily build reactive UIs. It is called Halogen and here you can reead guide to it.
There is wrapper around node-express for purescript and here is simple guide to it.