Shpadoinkle-html-0.3.0.2: A typed, template generated Html DSL, and helpers.

Safe HaskellNone
LanguageHaskell2010

Shpadoinkle.WebWorker

Documentation

newtype Worker Source #

Constructors

Worker 

Fields

Instances
ToJSVal Worker Source # 
Instance details

Defined in Shpadoinkle.WebWorker

postMessage :: ToJSVal a => MonadJSM m => Worker -> a -> m () Source #

postMessage' :: ToJSVal a => MonadJSM m => a -> m () Source #

onMessage :: ToJSVal mailbox => FromJSVal message => MonadJSM m => mailbox -> (Maybe message -> JSM ()) -> m () Source #