Fix compatibility with template-haskell 2.17 for yesod
This commit is contained in:
parent
9edbc05827
commit
189487914d
@ -113,7 +113,11 @@ combine func file isReload tls = do
|
|||||||
, show file
|
, show file
|
||||||
, ", but no templates were found."
|
, ", 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
|
exps -> return $ DoE $ map NoBindS exps
|
||||||
|
#endif
|
||||||
where
|
where
|
||||||
qmexps :: Q [Maybe Exp]
|
qmexps :: Q [Maybe Exp]
|
||||||
qmexps = mapM go tls
|
qmexps = mapM go tls
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user