Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- class Prerender js m | m -> js where
- prerender :: forall js m a. Prerender js m => m a -> (PrerenderClientConstraint js m => m a) -> m a
- type PrerenderClientConstraint js m = (HasJS js m, HasJS js (Performable m), MonadJSM m, MonadJSM (Performable m), HasJSContext m, HasJSContext (Performable m), MonadFix m, MonadFix (Performable m), DomBuilderSpace m ~ GhcjsDomSpace)
Documentation
class Prerender js m | m -> js where Source #
prerenderClientDict :: Maybe (Dict (PrerenderClientConstraint js m)) Source #
Instances
prerender :: forall js m a. Prerender js m => m a -> (PrerenderClientConstraint js m => m a) -> m a Source #
Draw one widget when prerendering (e.g. server-side) and another when the widget is fully instantiated. In a given execution of this function, there will be exactly one invocation of exactly one of the arguments.
type PrerenderClientConstraint js m = (HasJS js m, HasJS js (Performable m), MonadJSM m, MonadJSM (Performable m), HasJSContext m, HasJSContext (Performable m), MonadFix m, MonadFix (Performable m), DomBuilderSpace m ~ GhcjsDomSpace) Source #