From 59402da412171706a785ba82aeb1fd60fcc944bc Mon Sep 17 00:00:00 2001 From: Felipe Lessa Date: Tue, 11 Mar 2014 17:09:27 -0300 Subject: [PATCH] Deprecate the original renderBootstrap. --- yesod-form/Yesod/Form/Functions.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/yesod-form/Yesod/Form/Functions.hs b/yesod-form/Yesod/Form/Functions.hs index 282e57c9..8785cbc9 100644 --- a/yesod-form/Yesod/Form/Functions.hs +++ b/yesod-form/Yesod/Form/Functions.hs @@ -334,7 +334,9 @@ $forall view <- views |] return (res, widget) --- | Render a form using Bootstrap-friendly shamlet syntax. +-- | Render a form using Bootstrap v2-friendly shamlet syntax. +-- If you're using Bootstrap v3, then you should use the +-- functions from module "Yesod.Form.Bootstrap3". -- -- Sample Hamlet: -- @@ -369,6 +371,7 @@ renderBootstrap aform fragment = do #{err} |] return (res, widget) +{-# DEPRECATED renderBootstrap "Please use the Yesod.Form.Bootstrap3 module." #-} check :: (Monad m, RenderMessage (HandlerSite m) msg) => (a -> Either msg a)