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
Should Export constructor be exported?
How do I convert a JSVal into an Export?
I'm trying to export a haskell value so that it can be called from javascript (in a callback). Therefore the callback should have the signature Callback (Export a -> IO JSVal).
The closest match is callback1 :: Callback (JSVal -> IO JSVal)which means I need a way to convert JSVal to Export.
Unless there is an alternative way to do this?
The text was updated successfully, but these errors were encountered:
Should
Export
constructor be exported?How do I convert a JSVal into an Export?
I'm trying to export a haskell value so that it can be called from javascript (in a callback). Therefore the callback should have the signature
Callback (Export a -> IO JSVal)
.The closest match is
callback1 :: Callback (JSVal -> IO JSVal)
which means I need a way to convert JSVal to Export.Unless there is an alternative way to do this?
The text was updated successfully, but these errors were encountered: