Safe Haskell | None |
---|
- data App = App {}
- data AppMessage
- = MsgCompose {
- | MsgRaw {
- | MsgPassword {
- | MsgFolders {
- | MsgLogin {
- | MsgLogout {
- | MsgDate {
- | MsgNum {
- | MsgSubject {
- | MsgAuthors {
- | MsgAttach {
- | MsgTags {
- | MsgRawWarning {
- | MsgRunCmd {
- | MsgExitCode {
- | MsgStdOut {
- | MsgStdErr {
- | MsgSend {
- | MsgExtraHeader {
- | MsgSent {
- | MsgInPager { }
- | MsgViewInPager {
- | MsgCheckNew {
- | MsgMessageRetagging {
- | MsgSepTagsBySpace {
- | MsgClose {
- | MsgRetag {
- | MsgTagsToAdd {
- | MsgTagsToRemove {
- = MsgCompose {
- type Handler = HandlerT App IO
- type Widget = WidgetT App IO ()
- resourcesApp :: [ResourceTree String]
- type Form x = Html -> MForm (HandlerT App IO) (FormResult x, Widget)
- getExtra :: (MonadHandler m, HandlerSite m ~ App) => m Extra
- isPjax :: (MonadHandler m, HandlerSite m ~ App) => m Bool
- loginForm :: AForm (HandlerT App IO) ByteString
- passwordPlugin :: AuthPlugin App
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 | |
|
data AppMessage Source
Creates the route datatype AppRoute. Every valid URL in your
Creates the associated type:
Creates the value resourcesApp which contains information on the
getExtra :: (MonadHandler m, HandlerSite m ~ App) => m ExtraSource
Get the Extra
value, used to hold data from the settings.yml file.
isPjax :: (MonadHandler m, HandlerSite m ~ App) => m BoolSource
Checks if the request comes from pjax