Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0ff3188cd1
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (35 sloc) 1.254 kb
module Config.App (
applicationPath,
applicationHost,
AppEnvironment (..),
newAppEnvironment,
databaseConnection,
Connection,
customPreFilters,
customPostFilters,
logLevel
) where
import System.Log.Logger
-- Your favorite HDBC driver
import Database.HDBC.PostgreSQL
----------------------------------------------------------------
-- Environment settings
----------------------------------------------------------------
applicationPath = ""
applicationHost = "localhost:8080"
data AppEnvironment = AppEnvironment
newAppEnvironment = AppEnvironment
----------------------------------------------------------------
-- Database connection
----------------------------------------------------------------
databaseConnection :: Maybe (IO Connection)
databaseConnection = Nothing
----------------------------------------------------------------
-- RequestHandler Filter List additions
----------------------------------------------------------------
customPreFilters = []
customPostFilters = []
----------------------------------------------------------------
-- Logging
----------------------------------------------------------------
logLevel = ERROR -- DEBUG < INFO < NOTICE < WARNING < ERROR < CRITICAL < ALERT < EMERGENCY
Jump to Line
Something went wrong with that request. Please try again.