Fix compatibility with template-haskell 2.17 for yesod

This commit is contained in:
Felix Yan 2021-06-30 18:07:24 +08:00
parent 9edbc05827
commit 189487914d
No known key found for this signature in database
GPG Key ID: 786C63F330D7CB92

View File

@ -113,7 +113,11 @@ combine func file isReload tls = do
, show file
, ", but no templates were found."
]
#if MIN_VERSION_template_haskell(2,17,0)
exps -> return $ DoE Nothing $ map NoBindS exps
#else
exps -> return $ DoE $ map NoBindS exps
#endif
where
qmexps :: Q [Maybe Exp]
qmexps = mapM go tls