You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have started using Miso with GHCJS and I want to use the web usb API to talk to some local embedded device. I can do this fine by creating foreign functions in GHCJS with something like this:
Now I can simply call the function in Haskell like this:
usbDev <- jsRequestUSBDeviceAccess filters
Since I want to move to jsaddle I want to know how I can essentially rewrite this structure to be compatible with jsaddle. I in particular don't want two function where the second function is a continuation.
The text was updated successfully, but these errors were encountered:
rowanG077
changed the title
How to get result of promise/async function without going calling another function on the haskell side.
How to get result of promise/async function without a continuation Haskell function.
Jun 26, 2020
I have started using Miso with GHCJS and I want to use the web usb API to talk to some local embedded device. I can do this fine by creating foreign functions in GHCJS with something like this:
Now I can simply call the function in Haskell like this:
Since I want to move to jsaddle I want to know how I can essentially rewrite this structure to be compatible with jsaddle. I in particular don't want two function where the second function is a continuation.
The text was updated successfully, but these errors were encountered: