A haskell project I am working on needs the ability to call javascript from haskell and then call back into haskell from javascript. Here’s a minimal ghcjs program that shows how to do this:

https://github.com/dc25/ghcjsCallback .