$ node Main.jsexe/all.js "Hello JS" The index.html file can be used to run our code in a browser.
$ mkdir ghcjs-test $ cd ghcjs-test $ echo'main = print "Hello JS"' > Main.hs $ ghcjs Main.hs Running ghcjs creates the directory Main.jsexe/.