I dig code ghcjs-jqueryto see how it works JavascriptFFI. I am trying to understand that as soon as you determine the signature of the FFI import type for the JS function, you will help ghcjsfind the file containing this function.
While checking Internal.hsthe Cabal configuration, I see no way to specify the path to the JS files of JQuery. I also looked at the documentation for the function JavascriptFFI, but found nothing. I will share pointers on how to make Javascript FFI in ghcjsfor any JS library. There ghcjsshould be some command line option to indicate where to find the files js.
I plan to play with dojo functions after I figure out the JavascriptFFIfunction ghcjs.
source
share