From 468fba2226c227c0c538d83e2c65aa103962f7a2 Mon Sep 17 00:00:00 2001 From: Ping Chen Date: Mon, 9 Apr 2018 14:21:48 +0900 Subject: [PATCH 1/2] generalize type signature of GoogleEmail2.getPerson --- yesod-auth/Yesod/Auth/GoogleEmail2.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yesod-auth/Yesod/Auth/GoogleEmail2.hs b/yesod-auth/Yesod/Auth/GoogleEmail2.hs index 789006e2..11fb8789 100644 --- a/yesod-auth/Yesod/Auth/GoogleEmail2.hs +++ b/yesod-auth/Yesod/Auth/GoogleEmail2.hs @@ -270,7 +270,7 @@ makeHttpRequest req = -- Will throw 'HttpException' in case of network problems or error response code. -- -- @since 1.4.3 -getPerson :: Manager -> Token -> AuthHandler site (Maybe Person) +getPerson :: MonadHandler m => Manager -> Token -> m (Maybe Person) getPerson manager token = liftSubHandler $ parseMaybe parseJSON <$> (do req <- personValueRequest token res <- http req manager From fa1248389d36407eb52c56ef602f703d503847f9 Mon Sep 17 00:00:00 2001 From: Ping Chen Date: Mon, 9 Apr 2018 20:48:57 +0900 Subject: [PATCH 2/2] bump version and update ChangeLog --- yesod-auth/ChangeLog.md | 4 ++++ yesod-auth/yesod-auth.cabal | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/yesod-auth/ChangeLog.md b/yesod-auth/ChangeLog.md index 64a70937..a22f1e32 100644 --- a/yesod-auth/ChangeLog.md +++ b/yesod-auth/ChangeLog.md @@ -1,3 +1,7 @@ +## 1.6.3 + +* Generalize GoogleEmail2.getPerson [#1501](https://github.com/yesodweb/yesod/pull/1501) + ## 1.6.2 * Remove MINIMAL praggma for authHttpManager [#1489](https://github.com/yesodweb/yesod/issues/1489) diff --git a/yesod-auth/yesod-auth.cabal b/yesod-auth/yesod-auth.cabal index 7d96fa2b..23b90ab6 100644 --- a/yesod-auth/yesod-auth.cabal +++ b/yesod-auth/yesod-auth.cabal @@ -1,5 +1,5 @@ name: yesod-auth -version: 1.6.2 +version: 1.6.3 license: MIT license-file: LICENSE author: Michael Snoyman, Patrick Brisbin