[Haskell-beginners] Haskell -> JavaScript -> nodejs

Martin Vlk martin at vlkk.cz
Sat Jun 20 07:19:00 UTC 2015


Hi,
I can successfully compile a basic Hello World into JavaScript with
ghcjs and run it with nodejs.
But what I ultimately need to do is write a nodejs module in Haskell and
compile down to JavaScript with ghcjs. I need to be able to require
other nodejs modules as well.

Could somebody point me in the right direction? E.g. what approach and
libraries to use...

I have tried a simple thing with jsaddle/lens, but when I try to compile
with ghcjs it is not finding the imported modules, even though when
compiling with ghc it does find them (they are installed using cabal).

Many Thanks
Martin


More information about the Beginners mailing list