Run your app, taking environment and port settings from the commandline.
fromArgs helps parse a custom configuration
main :: IO ()
main = defaultMain (fromArgs parseExtra) makeApplication:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Moduleyesod-1.6.2.1Haskell2010
Run your app, taking environment and port settings from the commandline.
fromArgs helps parse a custom configuration
main :: IO ()
main = defaultMain (fromArgs parseExtra) makeApplicationSame as defaultMain, but gets a logging function back as well as an
Application to install Warp exception handlers.
Since 1.2.5
Run your application continuously, listening for SIGINT and exiting when received
withYourSite :: AppConfig DefaultEnv -> Logger -> (Application -> IO a) -> IO ()
withYourSite conf logger f = do
Settings.withConnectionPool conf $ \p -> do
runConnectionPool (runMigration yourMigration) p
defaultRunner f $ YourSite conf logger pdefaultDevelApp :: IO (AppConfig env extra)A means to load your development AppConfig
-> (AppConfig env extra -> IO Application)Get your Application
-> IO (Int, Application)Run your development app using a custom environment type and loader function