Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- attachWidget'' :: (EventChannel -> PerformEventT DomTimeline DomHost (a, IORef (Maybe (EventTrigger DomTimeline ())))) -> IO (a, FireCommand DomTimeline DomHost)
- processAsyncEvents :: EventChannel -> FireCommand DomTimeline DomHost -> IO ()
- attachImmediateWidget :: (IORef HydrationMode -> 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 ()
- runImmediateWidgetWithHeadAndBody :: ((forall c. Widget () c -> FloatingWidget () c) -> (forall c. Widget () c -> FloatingWidget () c) -> FloatingWidget () ()) -> JSM ()
- attachWidget :: IsElement e => e -> JSContextSingleton x -> Widget x a -> JSM a
- runDomHost :: DomHost a -> IO a
- mainWidget' :: Widget () () -> JSM ()
- runHydrationWidgetWithHeadAndBody :: JSM () -> ((forall c. HydrationWidget () c -> FloatingWidget () c) -> (forall c. HydrationWidget () c -> FloatingWidget () c) -> FloatingWidget () ()) -> JSM ()
- attachHydrationWidget :: JSM () -> JSContextSingleton () -> (Event DomTimeline () -> IORef HydrationMode -> Maybe (IORef [(Node, HydrationRunnerT DomTimeline (DomCoreWidget ()) ())]) -> EventChannel -> PerformEventT DomTimeline DomHost (a, IORef (Maybe (EventTrigger DomTimeline ())))) -> IO (a, FireCommand DomTimeline DomHost)
- mainHydrationWidgetWithSwitchoverAction' :: JSM () -> HydrationWidget () () -> HydrationWidget () () -> JSM ()
- mainHydrationWidgetWithSwitchoverAction :: JSM () -> (forall x. HydrationWidget x ()) -> (forall x. HydrationWidget x ()) -> JSM ()
- type HydrationWidget x a = HydrationDomBuilderT HydrationDomSpace DomTimeline (DomCoreWidget x) a
- type FloatingWidget x = TriggerEventT DomTimeline (DomCoreWidget x)
- type DomCoreWidget x = PostBuildT DomTimeline (WithJSContextSingleton x (PerformEventT DomTimeline DomHost))
- type DomTimeline = Spider
- type DomHost = SpiderHost Global
- type Widget x = ImmediateDomBuilderT DomTimeline (DomCoreWidget x)
- 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 ()
- mainHydrationWidgetWithHead :: (forall x. HydrationWidget x ()) -> (forall x. HydrationWidget x ()) -> IO ()
- mainHydrationWidgetWithHead' :: HydrationWidget () () -> HydrationWidget () () -> IO ()
Documentation
attachWidget'' :: (EventChannel -> PerformEventT DomTimeline DomHost (a, IORef (Maybe (EventTrigger DomTimeline ())))) -> IO (a, FireCommand DomTimeline DomHost) #
processAsyncEvents :: EventChannel -> FireCommand DomTimeline DomHost -> IO () #
attachImmediateWidget :: (IORef HydrationMode -> 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 () #
runImmediateWidgetWithHeadAndBody :: ((forall c. Widget () c -> FloatingWidget () c) -> (forall c. Widget () c -> FloatingWidget () c) -> FloatingWidget () ()) -> 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.
runHydrationWidgetWithHeadAndBody :: JSM () -> ((forall c. HydrationWidget () c -> FloatingWidget () c) -> (forall c. HydrationWidget () c -> FloatingWidget () c) -> FloatingWidget () ()) -> JSM () #
attachHydrationWidget :: JSM () -> JSContextSingleton () -> (Event DomTimeline () -> IORef HydrationMode -> Maybe (IORef [(Node, HydrationRunnerT DomTimeline (DomCoreWidget ()) ())]) -> EventChannel -> PerformEventT DomTimeline DomHost (a, IORef (Maybe (EventTrigger DomTimeline ())))) -> IO (a, FireCommand DomTimeline DomHost) #
mainHydrationWidgetWithSwitchoverAction' :: JSM () -> HydrationWidget () () -> HydrationWidget () () -> JSM () #
Warning: mainHydrationWidgetWithSwitchoverAction
` is provided only as performance tweak. It is expected to disappear in future releases.
mainHydrationWidgetWithSwitchoverAction :: JSM () -> (forall x. HydrationWidget x ()) -> (forall x. HydrationWidget x ()) -> JSM () #
type HydrationWidget x a = HydrationDomBuilderT HydrationDomSpace DomTimeline (DomCoreWidget x) a #
type FloatingWidget x = TriggerEventT DomTimeline (DomCoreWidget x) #
A widget that isn't attached to any particular part of the DOM hierarchy
type DomCoreWidget x = PostBuildT DomTimeline (WithJSContextSingleton x (PerformEventT DomTimeline DomHost)) #
type DomTimeline = Spider #
The Reflex timeline for interacting with the DOM
type DomHost = SpiderHost Global #
The ReflexHost the DOM lives in
type Widget x = ImmediateDomBuilderT DomTimeline (DomCoreWidget x) #
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 #
mainHydrationWidgetWithHead :: (forall x. HydrationWidget x ()) -> (forall x. HydrationWidget x ()) -> IO () Source #
mainHydrationWidgetWithHead' :: HydrationWidget () () -> HydrationWidget () () -> IO () Source #