notmuch-web-0.1.1: A web interface to the notmuch email indexer

Safe HaskellNone

Foundation

Contents

Synopsis

Documentation

data App Source

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

settings :: AppConfig DefaultEnv Extra
 
getStatic :: Static

Settings for static file serving.

httpManager :: Manager
 
passwordHash :: ByteString

hashed password from Crypto.PasswordStore

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