ToHtml for setMessage
This commit is contained in:
parent
4d0be9f672
commit
b11a05d9eb
@ -332,8 +332,8 @@ msgKey = "_MSG"
|
|||||||
-- instead, it will only appear in the next request.
|
-- instead, it will only appear in the next request.
|
||||||
--
|
--
|
||||||
-- See 'getMessage'.
|
-- See 'getMessage'.
|
||||||
setMessage :: Html -> GHandler sub master ()
|
setMessage :: ToHtml h => h -> GHandler sub master ()
|
||||||
setMessage = setSession msgKey . L.toString . renderHtml
|
setMessage = setSession msgKey . L.toString . renderHtml . toHtml
|
||||||
|
|
||||||
-- | Gets the message in the user's session, if available, and then clears the
|
-- | Gets the message in the user's session, if available, and then clears the
|
||||||
-- variable.
|
-- variable.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user