Better doc for setSession
This commit is contained in:
parent
a14f232f18
commit
7d273861e2
@ -338,6 +338,9 @@ msgKey = "_MSG"
|
|||||||
|
|
||||||
-- | Sets a message in the user's session.
|
-- | 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'.
|
-- See 'getMessage'.
|
||||||
setMessage :: Html () -> GHandler sub master ()
|
setMessage :: Html () -> GHandler sub master ()
|
||||||
setMessage = setSession msgKey . L.toString . renderHtml
|
setMessage = setSession msgKey . L.toString . renderHtml
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user