diff --git a/src/Yesod/Auth/OAuth2/Google.hs b/src/Yesod/Auth/OAuth2/Google.hs index 77e7726..0fc3475 100644 --- a/src/Yesod/Auth/OAuth2/Google.hs +++ b/src/Yesod/Auth/OAuth2/Google.hs @@ -39,9 +39,8 @@ newtype User = User Text instance FromJSON User where parseJSON = withObject "User" $ \o -> - User - -- Required for data backwards-compatibility - <$> (("google-uid:" <>) <$> o .: "sub") + -- Required for data backwards-compatibility + User . ("google-uid:" <>) <$> o .: "sub" pluginName :: Text pluginName = "google"