| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Web.Front
Synopsis
- data ClientTaskType
- createTask :: Show a => Text -> ClientTaskType -> (t -> Markup a) -> t -> ClientTask a
- emptyTask :: ClientTask a
Documentation
data ClientTaskType Source #
Constructors
| OnlyHtml | |
| OnlyEvents | |
| BothHtmlEvents | |
| None |
Instances
| Eq ClientTaskType Source # | |
Defined in Web.Front Methods (==) :: ClientTaskType -> ClientTaskType -> Bool # (/=) :: ClientTaskType -> ClientTaskType -> Bool # | |
| Show ClientTaskType Source # | |
Defined in Web.Front Methods showsPrec :: Int -> ClientTaskType -> ShowS # show :: ClientTaskType -> String # showList :: [ClientTaskType] -> ShowS # | |
Arguments
| :: Show a | |
| => Text | DOM Element Id. |
| -> ClientTaskType | Type of task to execute on client. |
| -> (t -> Markup a) | How to render state. |
| -> t | State to render. |
| -> ClientTask a | Message that will be pushed to client(s). |
Generate message that will be pushed to client(s) based on underlying communication.
emptyTask :: ClientTask a Source #