Safe Haskell | None |
---|
- data App = App {
- settings :: AppConfig DefaultEnv Extra
- getStatic :: Static
- httpManager :: Manager
- appOpts :: WebOpts
- appJournal :: IORef Journal
- data AppMessage = MsgHello {
- type Handler = HandlerT App IO
- type Widget = WidgetT App IO ()
- resourcesApp :: [ResourceTree String]
- type AppRoute = Route App
- type Form x = Html -> MForm (HandlerT App IO) (FormResult x, Widget)
- getExtra :: Handler Extra
Documentation
The site argument for your application. This can be a good place to keep settings and values requiring initialization before your application starts running, such as database connections. Every handler will have access to the data present here.
App | |
|