spago run where purescript code can call the wasm function (e.g.
addInt :: Int -> Int -> Int). However that doesn’t work in the browser, see the main.html and loader.js file. It seems like I would need to use
WebAssembly.instantiateStreaming API with an XMLHttpRequest promise.
Are there existing wasm purescript binding example? Should I update the binding to include the Promise Effect? Or is it possible to somehow hide the loading part in the browser case, and keep the same binding? I’m not very familiar with nodejs vs webapi differences, any help would be very helpful thanks!