| Safe Haskell | None |
|---|
Foundation
Contents
- 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.
Constructors
| App | |
Fields
| |
Instances
| RenderRoute App | |
| ParseRoute App | |
| RouteAttrs App | |
| Yesod App | |
| YesodDispatch App | |
| RenderMessage App FormMessage | |
| RenderMessage App AppMessage | |
| Eq (Route App) | |
| Read (Route App) | |
| Show (Route App) |
Creates the route datatype AppRoute. Every valid URL in your
Creates the associated type:
Creates the value resourcesApp which contains information on the
resourcesApp :: [ResourceTree String]Source