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.*.
This commit is contained in:
Felipe Lessa 2011-12-19 14:04:51 -02:00
parent 15495d6213
commit 9a9d063d3e
2 changed files with 8 additions and 1 deletions

View File

@ -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
-- (<https://developers.facebook.com/policy/>), the user needs to

View File

@ -1,5 +1,5 @@
name: yesod-auth
version: 0.8
version: 0.7.8
license: BSD3
license-file: LICENSE
author: Michael Snoyman, Patrick Brisbin