Merge pull request #1175 from sajith/patch-1

Minor doc patch - sendStatusJSON is since 1.4.18
This commit is contained in:
Sibi 2016-03-07 06:00:40 +05:30
commit 1bc843c0ce

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)