From 8af444ddb2a57e781006d2b8daa7073340da5cd0 Mon Sep 17 00:00:00 2001 From: Brian Schroeder Date: Tue, 11 Aug 2015 12:03:22 -0400 Subject: [PATCH] Rearrange argument order --- Yesod/Auth/OAuth2/Nylas.hs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Yesod/Auth/OAuth2/Nylas.hs b/Yesod/Auth/OAuth2/Nylas.hs index 6959317..93a465e 100644 --- a/Yesod/Auth/OAuth2/Nylas.hs +++ b/Yesod/Auth/OAuth2/Nylas.hs @@ -53,15 +53,14 @@ oauth2Nylas :: YesodAuth m => Text -- ^ Client ID -> Text -- ^ Client Secret -> AuthPlugin m -oauth2Nylas clientId clientSecret = - oauth2NylasScoped clientId clientSecret ["email"] +oauth2Nylas = oauth2NylasScoped ["email"] oauth2NylasScoped :: YesodAuth m - => Text -- ^ Client ID - -> Text -- ^ Client Secret - -> [Text] -- ^ Scopes + => [Text] -- ^ Scopes + -> Text -- ^ Client ID + -> Text -- ^ Client Secret -> AuthPlugin m -oauth2NylasScoped clientId clientSecret scopes = +oauth2NylasScoped scopes clientId clientSecret = authOAuth2 "nylas" oauth fetchCreds where authorizeUrl = encodeUtf8