hledger-web-0.20.0.1: A web interface for the hledger accounting tool.

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
 
appOpts :: WebOpts
 
appJournal :: IORef Journal
 

Creates the route datatype AppRoute. Every valid URL in your

Creates the associated type:

Creates the value resourcesApp which contains information on the

type AppRoute = Route AppSource

A convenience alias.

getExtra :: Handler ExtraSource

Get the Extra value, used to hold data from the settings.yml file.