From 9a9d063d3e2b992b733098a0b9f4009cbba8a8da Mon Sep 17 00:00:00 2001 From: Felipe Lessa Date: Mon, 19 Dec 2011 14:04:51 -0200 Subject: [PATCH] Re-export facebookLogin as facebookUrl in yesod-auth's Facebook. Now facebookUrl is deprecated and provided only for backwards compatibility. This also allows us to bump yesod-auth's version back to 0.7.*. --- yesod-auth/Yesod/Auth/Facebook.hs | 7 +++++++ yesod-auth/yesod-auth.cabal | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/yesod-auth/Yesod/Auth/Facebook.hs b/yesod-auth/Yesod/Auth/Facebook.hs index 62737374..c4dbd1c0 100644 --- a/yesod-auth/Yesod/Auth/Facebook.hs +++ b/yesod-auth/Yesod/Auth/Facebook.hs @@ -4,6 +4,7 @@ module Yesod.Auth.Facebook ( authFacebook , facebookLogin + , facebookUrl , facebookLogout , getFacebookAccessToken ) where @@ -31,6 +32,12 @@ import qualified Yesod.Auth.Message as Msg facebookLogin :: AuthRoute facebookLogin = PluginR "facebook" ["forward"] +-- | This is just a synonym of 'facebookLogin'. Deprecated since +-- @yesod-auth 0.7.8@, please use 'facebookLogin' instead. +facebookUrl :: AuthRoute +facebookUrl = facebookLogin +{-# DEPRECATED facebookUrl "Please use facebookLogin instead." #-} + -- | Route for logout using this authentication plugin. Per -- Facebook's policies -- (), the user needs to diff --git a/yesod-auth/yesod-auth.cabal b/yesod-auth/yesod-auth.cabal index b8bdcf88..8f3d1e67 100644 --- a/yesod-auth/yesod-auth.cabal +++ b/yesod-auth/yesod-auth.cabal @@ -1,5 +1,5 @@ name: yesod-auth -version: 0.8 +version: 0.7.8 license: BSD3 license-file: LICENSE author: Michael Snoyman, Patrick Brisbin