Safe Haskell | None |
---|---|
Language | Haskell2010 |
Foundation
Contents
- data App = App {}
- 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
- data ViewData = VD {}
- nullviewdata :: ViewData
- viewdataWithDateAndParams :: Day -> String -> String -> String -> ViewData
- getViewData :: Handler ViewData
- getLastMessage :: Handler (Maybe Html)
- addform :: Text -> ViewData -> HtmlUrl AppRoute
- journalselect :: [FilePath] -> HtmlUrl AppRoute
- journalradio :: [FilePath] -> HtmlUrl AppRoute
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
RouteAttrs App # | |
ParseRoute App # | |
RenderRoute App # | |
Yesod App # | |
RenderMessage App FormMessage # | |
RenderMessage App AppMessage # | |
Eq (Route App) # | |
Read (Route App) # | |
Show (Route App) # | |
data 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] #
A bundle of data useful for hledger-web request handlers and templates.
Constructors
VD | |
Fields
|
Make a default ViewData, using day 0 as today's date.
viewdataWithDateAndParams :: Day -> String -> String -> String -> ViewData #
Make a ViewData using the given date and request parameters, and defaults elsewhere.
getViewData :: Handler ViewData #
Gather data used by handlers and templates in the current request.
getLastMessage :: Handler (Maybe Html) #
Get the message that was set by the last request, in a referentially transparent manner (allowing multiple reads).
journalselect :: [FilePath] -> HtmlUrl AppRoute #
journalradio :: [FilePath] -> HtmlUrl AppRoute #