Conversation
0754dff to
c116810
Compare
|
As the jsaddle does not support returning values in the "non-ghcjs" mode, may be it is better not to add these here, and rather directly use them from the module they are defined. (There exist a wip implementation of jsaddle on my fork which does support proper handling of sync callbacks, including returning values and exception handling, in all modes like warp and android) |
|
Well maybe we can still export these from
Do you think this will get merged? |
|
To be clear as well, these are not from |
I meant this will not be possible if there does not exist an API to return value from sync callback on jsaddle-warp.
Not really, it is significantly different now and will remain as a fork. |
|
Ah I see, then it sounds like we need some Callback newtype to generalize over ghcjs-base, GHC.JS.Foreign.Callback, and the WASM Callback type. |
Which branch on your jsaddle fork has these features? @dfordivam |
Need synchronous variants that return values. Unsure if this is the preferred way to re-export for
jsaddle.