From 93da4f060e3b2e0c5f34f7a5c7e4f4b964e39304 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Sun, 6 Mar 2016 18:22:51 -0500 Subject: [PATCH] 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. --- yesod-core/Yesod/Core/Handler.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yesod-core/Yesod/Core/Handler.hs b/yesod-core/Yesod/Core/Handler.hs index 7d9e6da7..7f908c80 100644 --- a/yesod-core/Yesod/Core/Handler.hs +++ b/yesod-core/Yesod/Core/Handler.hs @@ -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)