Adding a ToTypedContent constraint to yesodMiddleware for response logging, etc.