Replies: 1 comment
-
flashMessages :: [FlashMessage] <- fromContext
let flashMessagesText =
map flashMessageText flashMessages
where
flashMessageText fm =
case fm of
SuccessFlashMessage message ->
"Success: " ++ message
ErrorFlashMessage message ->
"Got an Error: " ++ message |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
s0kil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How could I get all the flash messages inside an controller action?
Beta Was this translation helpful? Give feedback.
All reactions