jsaddle-wasm
Safe HaskellSafe-Inferred
LanguageGHC2021

Language.Javascript.JSaddle.Wasm

Contents

Description

See the README for more details.

While this package also compiles on non-WASM GHCs for convenience, running this function will immediately fail.

Synopsis

Documentation

run :: JSM () -> IO () Source #

Run a JSM action via the WASM JavaScript FFI.

runWorker :: JSM () -> JSVal -> IO () Source #

Run the "worker part" of a JSM action, interacting with the JSaddle JS code via the given JSVal, a message port like e.g. a web worker.

The messages at the connected message port must be dispatched using jsaddleScript.

Re-exports