Skip to content

How to use Export inside a Callback #105

Open
@louispan

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions