Fix build with yesod 1.6.
Also avoid some depreaction warnings.
This commit is contained in:
parent
1cb300e68a
commit
aebf9e6dd5
4 changed files with 19 additions and 0 deletions
|
@ -47,7 +47,11 @@ hamletTemplate f = globFile "hamlet" f
|
|||
#endif
|
||||
|
||||
{- Lift Handler to Widget -}
|
||||
#if MIN_VERSION_yesod_core(1,6,0)
|
||||
liftH :: HandlerFor site a -> WidgetFor site a
|
||||
#else
|
||||
liftH :: Monad m => HandlerT site m a -> WidgetT site m a
|
||||
#endif
|
||||
liftH = handlerToWidget
|
||||
|
||||
#if ! MIN_VERSION_yesod_core(1,2,20)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue