| Copyright | (c) digitally induced GmbH 2021 |
|---|---|
| Safe Haskell | None |
| Language | GHC2021 |
IHP.ServerSideComponent.ControllerFunctions
Contents
Description
Synopsis
- setState :: (?instanceRef :: IORef (ComponentInstance state), ?connection :: Connection, Component state action, ?context :: ControllerContext, ?request :: Request) => state -> IO ()
- sendError :: (?connection :: Connection) => SSCError -> IO ()
- getState :: (?instanceRef :: IORef (ComponentInstance state)) => IO state
- deriveSSC :: Name -> Q [Dec]
Documentation
setState :: (?instanceRef :: IORef (ComponentInstance state), ?connection :: Connection, Component state action, ?context :: ControllerContext, ?request :: Request) => state -> IO () Source #
sendError :: (?connection :: Connection) => SSCError -> IO () Source #
Send an error message to the client
Orphan instances
| FromJSON AttributeOperation Source # | |
Methods parseJSON :: Value -> Parser AttributeOperation # parseJSONList :: Value -> Parser [AttributeOperation] # | |
| FromJSON NodeOperation Source # | |
Methods parseJSON :: Value -> Parser NodeOperation # parseJSONList :: Value -> Parser [NodeOperation] # | |
| FromJSON Attribute Source # | |
| FromJSON Node Source # | |
| FromJSON SSCError Source # | |
| ToJSON AttributeOperation Source # | |
Methods toJSON :: AttributeOperation -> Value # toEncoding :: AttributeOperation -> Encoding # toJSONList :: [AttributeOperation] -> Value # toEncodingList :: [AttributeOperation] -> Encoding # omitField :: AttributeOperation -> Bool # | |
| ToJSON NodeOperation Source # | |
Methods toJSON :: NodeOperation -> Value # toEncoding :: NodeOperation -> Encoding # toJSONList :: [NodeOperation] -> Value # toEncodingList :: [NodeOperation] -> Encoding # omitField :: NodeOperation -> Bool # | |
| ToJSON Attribute Source # | |
| ToJSON Node Source # | |
| ToJSON SSCError Source # | |