I have a do block in my Yesod tests and I want to be test the response with an expected response.
I attempted to create an expected response in this do block
let expectedUser = User [authorized = true, ident = "AdminUser", displayName = Nothing, id = 1, avatar = Nothing]
On this line I get the error
parse error on input ‘=’
Perhaps you need a 'let' in a 'do' block?
on the = after authorized. How would I rewrite this line so that it would work inside a do block?