Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Export inside a Callback #105

Open
louispan opened this issue Mar 30, 2018 · 0 comments
Open

How to use Export inside a Callback #105

louispan opened this issue Mar 30, 2018 · 0 comments

Comments

@louispan
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant