Some extra deriving of typeclasses

This commit is contained in:
Michael Snoyman 2010-06-29 09:36:33 +03:00
parent b05722e218
commit 0d34332182

View File

@ -2,8 +2,6 @@
module Web.Authenticate.Facebook where
import Network.HTTP.Wget
import Control.Failure hiding (Error)
import Control.Monad.IO.Class
import Data.List (intercalate)
import Data.Object
import Data.Object.Json
@ -14,9 +12,10 @@ data Facebook = Facebook
, facebookClientSecret :: String
, facebookRedirectUri :: String
}
deriving (Show, Eq, Read)
newtype AccessToken = AccessToken { unAccessToken :: String }
deriving Show
deriving (Show, Eq, Read)
getForwardUrl :: Facebook -> [String] -> String
getForwardUrl fb perms = concat