Add comments and bump minor version to 1.4.29

This commit is contained in:
Aleksey Uimanov 2016-12-07 14:04:51 +05:00
parent 47ef36012d
commit 80f0b3cd70
2 changed files with 10 additions and 1 deletions

View File

@ -96,6 +96,11 @@ toWaiAppPlain site = do
, yreGetMaxExpires = getMaxExpires
}
-- | Pure low level function to construct WAI application. Usefull
-- when you need not standard way to run your app, or want to embed it
-- inside another app.
--
-- @since 1.4.29
toWaiAppYre :: YesodDispatch site => YesodRunnerEnv site -> W.Application
toWaiAppYre yre req =
case cleanPath site $ W.pathInfo req of
@ -240,6 +245,10 @@ warpEnv site = do
Nothing -> error $ "warpEnv: invalid PORT environment variable: " ++ show portS
Just port -> warp port site
-- | Default constructor for 'yreGetMaxExpires' field. Low level
-- function for simple manual construction of 'YesodRunnerEnv'.
--
-- @since 1.4.29
getGetMaxExpires :: IO (IO Text)
getGetMaxExpires = mkAutoUpdate defaultUpdateSettings
{ updateAction = getCurrentMaxExpiresRFC1123

View File

@ -1,5 +1,5 @@
name: yesod-core
version: 1.4.28
version: 1.4.29
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>