In the Home.hs handler from the yesod-simple scaffold I added these lines to postHomeR:
fileDescriptionMaybe <- lookupPostParam "fileDescription"
let result = fromMaybe "(empty)" fileDescriptionMaybe
Then in the homepage.hamlet template I use this result with the variable interpolation '#{result}'.
However the result is always "(empty)". How can I solve this?