HWebUI-0.1.0.0: Haskell User Interface Library

Safe HaskellNone

Server

Description

Server is an internal implementation module of HWebUI. HWebUI is providing FRP-based GUI functionality for Haskell by utilizing the Web-Browser. See module HWebUI for main documentation.

Synopsis

Documentation

data Webgui

the base data type included in the Yesod server for convenience

Constructors

Webgui

the layout of the page

Fields

channelMap :: Map String GSChannel

the map of unique GUI element ids and the communication Channels

guiLayout :: GWidget Webgui Webgui ()
 

Instances

RenderRoute Webgui 
Yesod Webgui 
YesodDispatch Webgui Webgui 
Eq (Route Webgui) 
Read (Route Webgui) 
Show (Route Webgui) 

type HWebUIWidget = GWidget Webgui Webgui ()

the widget type for the Yesod server

runHWebUIServer :: Int -> Map String GSChannel -> GWidget Webgui Webgui () -> IO ThreadId

run the HWebUIServer in the background

waitForHWebUIServer :: IO ()

wait for HWebUIServer to terminate