ghcjs can be invoked with the same command line arguments as ghc. The generated programs can be run directly from the shell with Node.js (opens new window) and SpiderMonkey jsshell (opens new window). for example:
ghcjs
ghc
$ ghcjs -o helloWorld helloWorld.hs $ node helloWorld.jsexe/all.js Hello world!
Read Articlehttps://develop.horje.com/learn/1434/reference