@@ -73,8 +73,10 @@ mainWidgetWithCss css w = runWebGUI $ \(webView, ctx) -> withWebViewSingleton (w
74type Widget x = PostBuildT Spider (ImmediateDomBuilderT Spider (WithWebView x (PerformEventT Spider (SpiderHost Global)))) --TODO: Make this more abstract --TODO: Put the WithWebView underneath PerformEventT - I think this would perform better
74type Widget x = PostBuildT Spider (ImmediateDomBuilderT Spider (WithWebView x (PerformEventT Spider (SpiderHost Global)))) --TODO: Make this more abstract --TODO: Put the WithWebView underneath PerformEventT - I think this would perform better
76instance MonadJSM m => MonadJSM (PostBuildT t m) where
77instance MonadJSM m => MonadJSM (PostBuildT t m) where
77 liftJSM' = PostBuildT . liftJSM'
78 liftJSM' = PostBuildT . liftJSM'
79{-# INLINABLE attachWidget #-}
81{-# INLINABLE attachWidget #-}
80attachWidget :: DOM.IsElement e => e -> WebViewSingleton x -> Widget x a -> JSM a
82attachWidget :: DOM.IsElement e => e -> WebViewSingleton x -> Widget x a -> JSM a