Skip to content

Commit

Permalink
Fix compatibility with template-haskell 2.17
Browse files Browse the repository at this point in the history
  • Loading branch information
felixonmars committed Jun 25, 2021
1 parent 81236a2 commit a1e18c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yesod-core/src/Yesod/Core/Internal/TH.hs
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ mkYesodDispatch name = fmap snd . mkYesodWithParser name False return
-- | Get the Handler and Widget type synonyms for the given site.
masterTypeSyns :: [Name] -> Type -> [Dec] -- FIXME remove from here, put into the scaffolding itself?
masterTypeSyns vs site =
[ TySynD (mkName "Handler") (fmap PlainTV vs)
[ TySynD (mkName "Handler") (fmap plainTV vs)
$ ConT ''HandlerFor `AppT` site
, TySynD (mkName "Widget") (fmap PlainTV vs)
, TySynD (mkName "Widget") (fmap plainTV vs)
$ ConT ''WidgetFor `AppT` site `AppT` ConT ''()
]

Expand Down

0 comments on commit a1e18c5

Please sign in to comment.