Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Settings are centralized, as much as possible, into this file. This includes database connection settings, static file locations, etc. In addition, you can configure a number of different aspects of Yesod by overriding methods in the Yesod typeclass. That instance is declared in the Foundation.hs file.
Synopsis
- data AppSettings = AppSettings {
- appStaticDir :: String
- appRoot :: Maybe Text
- appHost :: HostPreference
- appPort :: Int
- appIpFromHeader :: Bool
- appDetailedRequestLogging :: Bool
- appShouldLogAll :: Bool
- appReloadTemplates :: Bool
- appMutableStatic :: Bool
- appSkipCombining :: Bool
- appCopyright :: Text
- appAnalytics :: Maybe Text
- appAuthDummyLogin :: Bool
- widgetFileSettings :: WidgetFileSettings
- combineSettings :: CombineSettings
- widgetFile :: String -> Q Exp
- configSettingsYmlBS :: ByteString
- configSettingsYmlValue :: Value
- compileTimeAppSettings :: AppSettings
- combineStylesheets :: Name -> [Route Static] -> Q Exp
- combineScripts :: Name -> [Route Static] -> Q Exp
Documentation
data AppSettings Source #
Runtime settings to configure this application. These settings can be loaded from various sources: defaults, environment variables, config files, theoretically even a database.
AppSettings | |
|
Instances
FromJSON AppSettings Source # | |
Defined in BtcLsp.Yesod.Settings parseJSON :: Value -> Parser AppSettings # parseJSONList :: Value -> Parser [AppSettings] # |
widgetFileSettings :: WidgetFileSettings Source #
Settings for widgetFile
, such as which template languages to support and
default Hamlet settings.
For more information on modifying behavior, see:
https://github.com/yesodweb/yesod/wiki/Overriding-widgetFile
combineSettings :: CombineSettings Source #
How static files should be combined.
configSettingsYmlBS :: ByteString Source #
Raw bytes at compile time of config/settings.yml
configSettingsYmlValue :: Value Source #
config/settings.yml
, parsed to a Value
.
compileTimeAppSettings :: AppSettings Source #
A version of AppSettings
parsed at compile time from config/settings.yml
.