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.
|
||||
--
|
||||
-- See 'getMessage'.
|
||||
setMessage :: Html -> GHandler sub master ()
|
||||
setMessage = setSession msgKey . L.toString . renderHtml
|
||||
setMessage :: ToHtml h => h -> GHandler sub master ()
|
||||
setMessage = setSession msgKey . L.toString . renderHtml . toHtml
|
||||
|
||||
-- | Gets the message in the user's session, if available, and then clears the
|
||||
-- variable.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user