reflex-dom-core-0.6.0.0: Functional Reactive Web Apps with Reflex
Safe HaskellNone
LanguageHaskell98

Reflex.Dom.Builder.Hydratable

Synopsis

Documentation

newtype HydratableT m a Source #

A DomBuilder transformer that adds an attribute to all elements such that the hydration builder knows which bits of DOM were added by us, and which were added by external scripts.

Constructors

HydratableT 

Fields

Instances

Instances details
MonadTrans HydratableT Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

lift :: Monad m => m a -> HydratableT m a #

MonadTransControl HydratableT Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Associated Types

type StT HydratableT a #

Methods

liftWith :: Monad m => (Run HydratableT -> m a) -> HydratableT m a #

restoreT :: Monad m => m (StT HydratableT a) -> HydratableT m a #

(Prerender js t m, Monad m) => Prerender js t (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Prerender

Associated Types

type Client (HydratableT m) :: Type -> Type Source #

NotReady t m => NotReady t (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

notReadyUntil :: Event t a -> HydratableT m () #

notReady :: HydratableT m () #

PerformEvent t m => PerformEvent t (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Associated Types

type Performable (HydratableT m) :: Type -> Type #

TriggerEvent t m => TriggerEvent t (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

newTriggerEvent :: HydratableT m (Event t a, a -> IO ()) #

newTriggerEventWithOnComplete :: HydratableT m (Event t a, a -> IO () -> IO ()) #

newEventWithLazyTriggerWithOnComplete :: ((a -> IO () -> IO ()) -> IO (IO ())) -> HydratableT m (Event t a) #

PostBuild t m => PostBuild t (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

getPostBuild :: HydratableT m (Event t ()) #

MonadReflexCreateTrigger t m => MonadReflexCreateTrigger t (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

newEventWithTrigger :: (EventTrigger t a -> IO (IO ())) -> HydratableT m (Event t a) #

newFanEventWithTrigger :: GCompare k => (forall a. k a -> EventTrigger t a -> IO (IO ())) -> HydratableT m (EventSelector t k) #

Adjustable t m => Adjustable t (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

runWithReplace :: HydratableT m a -> Event t (HydratableT m b) -> HydratableT m (a, Event t b) #

traverseIntMapWithKeyWithAdjust :: (Key -> v -> HydratableT m v') -> IntMap v -> Event t (PatchIntMap v) -> HydratableT m (IntMap v', Event t (PatchIntMap v')) #

traverseDMapWithKeyWithAdjust :: GCompare k => (forall a. k a -> v a -> HydratableT m (v' a)) -> DMap k v -> Event t (PatchDMap k v) -> HydratableT m (DMap k v', Event t (PatchDMap k v')) #

traverseDMapWithKeyWithAdjustWithMove :: GCompare k => (forall a. k a -> v a -> HydratableT m (v' a)) -> DMap k v -> Event t (PatchDMapWithMove k v) -> HydratableT m (DMap k v', Event t (PatchDMapWithMove k v')) #

HasJS js m => HasJS js (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Associated Types

type JSX (HydratableT m) :: Type -> Type Source #

Methods

liftJS :: JSX (HydratableT m) a -> HydratableT m a Source #

DomBuilder t m => DomBuilder t (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Associated Types

type DomBuilderSpace (HydratableT m) Source #

Monad m => Monad (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

(>>=) :: HydratableT m a -> (a -> HydratableT m b) -> HydratableT m b #

(>>) :: HydratableT m a -> HydratableT m b -> HydratableT m b #

return :: a -> HydratableT m a #

Functor m => Functor (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

fmap :: (a -> b) -> HydratableT m a -> HydratableT m b #

(<$) :: a -> HydratableT m b -> HydratableT m a #

MonadFix m => MonadFix (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

mfix :: (a -> HydratableT m a) -> HydratableT m a #

Applicative m => Applicative (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

pure :: a -> HydratableT m a #

(<*>) :: HydratableT m (a -> b) -> HydratableT m a -> HydratableT m b #

liftA2 :: (a -> b -> c) -> HydratableT m a -> HydratableT m b -> HydratableT m c #

(*>) :: HydratableT m a -> HydratableT m b -> HydratableT m b #

(<*) :: HydratableT m a -> HydratableT m b -> HydratableT m a #

MonadIO m => MonadIO (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

liftIO :: IO a -> HydratableT m a #

MonadJSM m => MonadJSM (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

liftJSM' :: JSM a -> HydratableT m a #

PrimMonad m => PrimMonad (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Associated Types

type PrimState (HydratableT m) #

Methods

primitive :: (State# (PrimState (HydratableT m)) -> (# State# (PrimState (HydratableT m)), a #)) -> HydratableT m a #

MonadRef m => MonadRef (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Associated Types

type Ref (HydratableT m) :: Type -> Type #

Methods

newRef :: a -> HydratableT m (Ref (HydratableT m) a) #

readRef :: Ref (HydratableT m) a -> HydratableT m a #

writeRef :: Ref (HydratableT m) a -> a -> HydratableT m () #

modifyRef :: Ref (HydratableT m) a -> (a -> a) -> HydratableT m () #

modifyRef' :: Ref (HydratableT m) a -> (a -> a) -> HydratableT m () #

MonadAtomicRef m => MonadAtomicRef (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

atomicModifyRef :: Ref (HydratableT m) a -> (a -> (a, b)) -> HydratableT m b #

atomicModifyRef' :: Ref (HydratableT m) a -> (a -> (a, b)) -> HydratableT m b #

HasJSContext m => HasJSContext (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Associated Types

type JSContextPhantom (HydratableT m) Source #

HasDocument m => HasDocument (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

MonadSample t m => MonadSample (t :: Type) (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

sample :: Behavior t a -> HydratableT m a #

MonadHold t m => MonadHold (t :: Type) (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

hold :: a -> Event t a -> HydratableT m (Behavior t a) #

holdDyn :: a -> Event t a -> HydratableT m (Dynamic t a) #

holdIncremental :: Patch p => PatchTarget p -> Event t p -> HydratableT m (Incremental t p) #

buildDynamic :: PushM t a -> Event t a -> HydratableT m (Dynamic t a) #

headE :: Event t a -> HydratableT m (Event t a) #

DomRenderHook t m => DomRenderHook (t :: Type) (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

Methods

withRenderHook :: (forall x. JSM x -> JSM x) -> HydratableT m a -> HydratableT m a Source #

requestDomAction :: Event t (JSM a) -> HydratableT m (Event t a) Source #

requestDomAction_ :: Event t (JSM a) -> HydratableT m () Source #

type StT HydratableT a Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

type StT HydratableT a = a
type PrimState (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

type Ref (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

type Ref (HydratableT m) = Ref m
type Performable (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

type JSX (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

type JSX (HydratableT m) = JSX m
type JSContextPhantom (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

type DomBuilderSpace (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Builder.Hydratable

type Client (HydratableT m) Source # 
Instance details

Defined in Reflex.Dom.Prerender