Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Web.Hyperbole.Effect.Hyperbole
Synopsis
- data Hyperbole :: Effect where
- GetRequest :: Hyperbole m Request
- RespondNow :: Response -> Hyperbole m a
- ModClient :: (Client -> Client) -> Hyperbole m ()
- GetClient :: Hyperbole m Client
- TriggerAction :: TargetViewId -> Encoded -> Hyperbole m ()
- TriggerEvent :: Text -> Value -> Hyperbole m ()
- data Remote
- runHyperbole :: Request -> Eff (Hyperbole : es) Response -> Eff es (Response, Client, [Remote])
Documentation
data Hyperbole :: Effect where Source #
The Hyperbole
Effect
allows you to access information in the Request
, manually respond, and manipulate the Client session
and query
.
Constructors
GetRequest :: Hyperbole m Request | |
RespondNow :: Response -> Hyperbole m a | |
ModClient :: (Client -> Client) -> Hyperbole m () | |
GetClient :: Hyperbole m Client | |
TriggerAction :: TargetViewId -> Encoded -> Hyperbole m () | |
TriggerEvent :: Text -> Value -> Hyperbole m () |
Instances
type DispatchOf Hyperbole Source # | |
Defined in Web.Hyperbole.Effect.Hyperbole |
Constructors
RemoteAction TargetViewId Encoded | |
RemoteEvent Text Value |