frame-0.1: A simple web framework.

Frame.Config

Description

Module to define a configuration to be provided when launching framework applications

Synopsis

Documentation

data Config Source

Constructors

Config 

Fields

database :: DBInfo

The database info

dbName :: String

The name for the database

dbURL :: String

The ODBC URL for the database

sessionPath :: String

File system path to sessions

sessionId :: String

Session ID

css :: [String]

Stylesheets to attach to the view

asks :: MonadReader r m => (r -> a) -> m a

Retrieves a function of the current environment. Parameters:

  • The selector function to apply to the environment.

See an example in Control.Monad.Reader.