Fix compilation in #1484
Fix compilation in #1484

Pinging @RyanGlScott, these changes were necessary for older versions of
dependencies. Is there any problem with using this for GHC 8.4?

geraldus/yesod,psibi/yesod,geraldus/yesod,s9gf4ult/yesod,psibi/yesod,jprider63/yesod,jprider63/yesod,yesodweb/yesod,jprider63/yesod,psibi/yesod,yesodweb/yesod,s9gf4ult/yesod,s9gf4ult/yesod,geraldus/yesod,yesodweb/yesod