diff --git a/yesod-core/Yesod/Core/Class/Yesod.hs b/yesod-core/Yesod/Core/Class/Yesod.hs index 1286caee..61b5d939 100644 --- a/yesod-core/Yesod/Core/Class/Yesod.hs +++ b/yesod-core/Yesod/Core/Class/Yesod.hs @@ -266,7 +266,7 @@ class RenderRoute site => Yesod site where -- Default: the 'defaultYesodMiddleware' function. -- -- 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 -- | Default implementation of 'yesodMiddleware'. Adds the response header diff --git a/yesod/Yesod/Default/Config.hs b/yesod/Yesod/Default/Config.hs index 5519bfdc..12ac5cc3 100644 --- a/yesod/Yesod/Default/Config.hs +++ b/yesod/Yesod/Default/Config.hs @@ -214,7 +214,7 @@ loadConfig (ConfigSettings env parseExtra getFile getObject) = do Nothing -> fail $ "Not found: " ++ show k -- | Loads the configuration block in the passed file named by the --- passed environment, yeilds to the passed function as a mapping. +-- passed environment, yields to the passed function as a mapping. -- -- Errors in the case of a bad load or if your function returns -- @Nothing@.