jsaddle-dom-0.4.0.1: DOM library that uses jsaddle to support both GHCJS and GHC
JSDOM
Synopsis
currentWindow :: MonadDOM m => m (Maybe Window) Source #
currentDocument :: MonadDOM m => m (Maybe Document) Source #
run :: Int -> JSM () -> IO () #
syncPoint :: JSM () #
Forces execution of pending asyncronous code
syncAfter :: JSM a -> JSM a #
Forces execution of pending asyncronous code after performing f
f
catch :: Exception e => JSM b -> (e -> JSM b) -> JSM b #
Wrapped version of catch that runs in a MonadIO that works a bit better with JSM
catch
JSM
bracket :: JSM a -> (a -> JSM b) -> (a -> JSM c) -> JSM c #
Wrapped version of bracket that runs in a MonadIO that works a bit better with JSM
bracket