Adding a ToTypedContent constraint to yesodMiddleware for response logging, etc.
This commit is contained in:
parent
7658deaf05
commit
28e7bc26b8
@ -266,7 +266,7 @@ class RenderRoute site => Yesod site where
|
|||||||
-- Default: the 'defaultYesodMiddleware' function.
|
-- Default: the 'defaultYesodMiddleware' function.
|
||||||
--
|
--
|
||||||
-- Since: 1.1.6
|
-- Since: 1.1.6
|
||||||
yesodMiddleware :: HandlerT site IO res -> HandlerT site IO res
|
yesodMiddleware :: ToTypedContent res => HandlerT site IO res -> HandlerT site IO res
|
||||||
yesodMiddleware = defaultYesodMiddleware
|
yesodMiddleware = defaultYesodMiddleware
|
||||||
|
|
||||||
-- | Default implementation of 'yesodMiddleware'. Adds the response header
|
-- | Default implementation of 'yesodMiddleware'. Adds the response header
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user