Better doc for setSession

This commit is contained in:
Michael Snoyman 2010-07-10 21:44:10 +03:00
parent a14f232f18
commit 7d273861e2

View File

@ -338,6 +338,9 @@ msgKey = "_MSG"
-- | Sets a message in the user's session.
--
-- The message set here will not be visible within the current request;
-- instead, it will only appear in the next request.
--
-- See 'getMessage'.
setMessage :: Html () -> GHandler sub master ()
setMessage = setSession msgKey . L.toString . renderHtml