hyperbole-0.4.2: Interactive HTML apps using type-safe serverside Haskell
Safe HaskellNone
LanguageGHC2021

Web.Hyperbole.Effect.Handler

Documentation

class RunHandlers (views :: [Type]) (es :: [Effect]) where Source #

Methods

runHandlers :: Eff es () Source #

Instances

Instances details
RunHandlers ('[] :: [Type]) es Source # 
Instance details

Defined in Web.Hyperbole.Effect.Handler

Methods

runHandlers :: Eff es () Source #

(HyperView view es, RunHandlers views es) => RunHandlers (view ': views) es Source # 
Instance details

Defined in Web.Hyperbole.Effect.Handler

Methods

runHandlers :: Eff es () Source #

runHandler :: forall id (es :: [Effect]). (HyperView id es, Hyperbole :> es) => (Action id -> Eff (Reader id ': es) (View id ())) -> Eff es () Source #

runLoad :: forall (views :: [Type]) (es :: [Effect]). (Hyperbole :> es, RunHandlers views es) => Eff es (View (Root views) ()) -> Eff es Response Source #

guardNoEvent :: forall (es :: [Effect]). Hyperbole :> es => Eff es () Source #

loadToResponse :: forall (es :: [Effect]) (total :: [Type]). Eff es (View (Root total) ()) -> Eff es Response Source #