Minor doc patch - sendStatusJSON is since 1.4.18

I'm sure this is trivially obvious. :-)

Commit 6a60dac introduced `sendStatusJSON` on Nov 25, 2015; yesod-core 1.4.18 was uploaded to hackage on Dec 17.
This commit is contained in:
Sajith Sasidharan 2016-03-06 18:22:51 -05:00
parent d922bdd272
commit 93da4f060e

View File

@ -580,6 +580,8 @@ sendResponseStatus s = handlerError . HCContent s . toTypedContent
-- | Bypass remaining handler code and output the given JSON with the given
-- status code.
--
-- Since 1.4.18
sendStatusJSON :: (MonadHandler m, ToJSON c) => H.Status -> c -> m a
sendStatusJSON s v = sendResponseStatus s (toJSON v)