Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- processAsyncEvents :: EventChannel -> FireCommand DomTimeline DomHost -> IO ()
- attachWidget'' :: (EventChannel -> PerformEventT DomTimeline DomHost (a, IORef (Maybe (EventTrigger DomTimeline ())))) -> IO (a, FireCommand DomTimeline DomHost)
- attachWidget' :: IsElement e => e -> JSContextSingleton x -> Widget x a -> JSM (a, FireCommand DomTimeline DomHost)
- replaceElementContents :: IsElement e => e -> DocumentFragment -> JSM ()
- attachWidget :: IsElement e => e -> JSContextSingleton x -> Widget x a -> JSM a
- runDomHost :: DomHost a -> IO a
- mainWidget' :: Widget () () -> JSM ()
- type DomTimeline = Spider
- type DomHost = SpiderHost Global
- type Widget x = PostBuildT DomTimeline (ImmediateDomBuilderT DomTimeline (WithJSContextSingleton x (PerformEventT DomTimeline DomHost)))
- type EventChannel = Chan [DSum (EventTriggerRef DomTimeline) TriggerInvocation]
- newtype AppInput t = AppInput {
- _appInput_window :: Window t
- newtype AppOutput t = AppOutput {}
- run :: JSM () -> IO ()
- mainWidget :: (forall x. Widget x ()) -> IO ()
- mainWidgetWithHead :: (forall x. Widget x ()) -> (forall x. Widget x ()) -> IO ()
- mainWidgetWithCss :: ByteString -> (forall x. Widget x ()) -> IO ()
- mainWidgetWithHead' :: (a -> Widget () b, b -> Widget () a) -> IO ()
- mainWidgetInElementById :: Text -> (forall x. Widget x ()) -> IO ()
- runApp' :: (forall x. AppInput DomTimeline -> Widget x (AppOutput DomTimeline)) -> IO ()
Documentation
processAsyncEvents :: EventChannel -> FireCommand DomTimeline DomHost -> IO () #
attachWidget'' :: (EventChannel -> PerformEventT DomTimeline DomHost (a, IORef (Maybe (EventTrigger DomTimeline ())))) -> IO (a, FireCommand DomTimeline DomHost) #
attachWidget' :: IsElement e => e -> JSContextSingleton x -> Widget x a -> JSM (a, FireCommand DomTimeline DomHost) #
replaceElementContents :: IsElement e => e -> DocumentFragment -> JSM () #
attachWidget :: IsElement e => e -> JSContextSingleton x -> Widget x a -> JSM a #
runDomHost :: DomHost a -> IO a #
mainWidget' :: Widget () () -> JSM () #
Warning: mainWidget'
is provided only as performance tweak. It is expected to disappear in future releases.
type DomTimeline = Spider #
The Reflex timeline for interacting with the DOM
type DomHost = SpiderHost Global #
The ReflexHost the DOM lives in
type Widget x = PostBuildT DomTimeline (ImmediateDomBuilderT DomTimeline (WithJSContextSingleton x (PerformEventT DomTimeline DomHost))) #
type EventChannel = Chan [DSum (EventTriggerRef DomTimeline) TriggerInvocation] #
mainWidget :: (forall x. Widget x ()) -> IO () Source #
mainWidgetWithCss :: ByteString -> (forall x. Widget x ()) -> IO () Source #
runApp' :: (forall x. AppInput DomTimeline -> Widget x (AppOutput DomTimeline)) -> IO () Source #