Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- type WebSocketAPI = RemoteHost :> ClientAPI
- type OnWSConnect session = SockAddr -> OnConnect session
- websocketServer :: GetSession session -> OnWSConnect session -> ServerT WebSocketAPI ProcessIO
- splashHtml :: Monad m => HtmlT m () -> HtmlT m ()
- newtype ChannelName = ChannelName Text
- newtype Workspace = Workspace Text
Documentation
type WebSocketAPI = RemoteHost :> ClientAPI #
type OnWSConnect session = SockAddr -> OnConnect session #
websocketServer :: GetSession session -> OnWSConnect session -> ServerT WebSocketAPI ProcessIO #
splashHtml :: Monad m => HtmlT m () -> HtmlT m () #
Display the content in a splash screen
newtype ChannelName #
Instances
Instances
FromJSON Workspace # | |
ToJSON Workspace # | |
Defined in Butler.Display.WebSocket | |
IsString Workspace # | |
Defined in Butler.Display.WebSocket fromString :: String -> Workspace # | |
Show Workspace # | |
Eq Workspace # | |
Ord Workspace # | |
Defined in Butler.Display.WebSocket | |
FromHttpApiData Workspace # | |
Defined in Butler.Display.WebSocket parseUrlPiece :: Text -> Either Text Workspace # parseHeader :: ByteString -> Either Text Workspace # | |
ToHtml Workspace # | |
Serialise Workspace # | |
From Workspace StorageAddress # | |
Defined in Butler.Display.WebSocket from :: Workspace -> StorageAddress # | |
From Workspace Text # | |
Defined in Butler.Display.WebSocket |