Version bump

This commit is contained in:
Michael Snoyman 2016-03-29 09:13:38 +03:00
parent 3b9e782988
commit da4948592d
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
## 1.4.20
* `addMessage`, `addMessageI`, and `getMessages` functions
## 1.4.19.1
* Allow lines of dashes in route files [#1182](https://github.com/yesodweb/yesod/pull/1182)

View File

@ -527,6 +527,8 @@ msgKey = "_MSG"
-- | Adds a status and message in the user's session.
--
-- See 'getMessages'.
--
-- @since 1.4.20
addMessage :: MonadHandler m
=> Text -- ^ status
-> Html -- ^ message
@ -543,6 +545,8 @@ addMessage status msg = do
-- | Adds a message in the user's session but uses RenderMessage to allow for i18n
--
-- See 'getMessages'.
--
-- @since 1.4.20
addMessageI :: (MonadHandler m, RenderMessage (HandlerSite m) msg)
=> Text -> msg -> m ()
addMessageI status msg = do
@ -552,6 +556,8 @@ addMessageI status msg = do
-- | Gets all messages in the user's session, and then clears the variable.
--
-- See 'addMessage'.
--
-- @since 1.4.20
getMessages :: MonadHandler m => m [(Text, Html)]
getMessages = do
bs <- lookupSessionBS msgKey

View File

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