- data DingoSettings
- defaultDingoSettings :: DingoSettings
- dsPort :: DingoSettings -> Int
- dsResourceBundles :: DingoSettings -> [ResourceBundle]
- runApplication :: DingoSettings -> Text -> (Application -> CallbackM ()) -> IO ()
Documentation
data DingoSettings Source
Settings for the Dingo application. This is kept as an abstract type to avoid breaking applications when fields are added. You should use record syntax to change the defaults, e.g.
defaultDingoSettings { dsPort = 4900 }
defaultDingoSettings :: DingoSettingsSource
Default settings for the Dingo application.
dsPort :: DingoSettings -> IntSource
Port to listen on. Default value: 3000
dsResourceBundles :: DingoSettings -> [ResourceBundle]Source
Starting resource bundles. Default value: []
runApplication :: DingoSettings -> Text -> (Application -> CallbackM ()) -> IO ()Source
Run the application with the given settings.