Merge pull request #1501 from rnons/getPerson-signature

generalize type signature of GoogleEmail2.getPerson
This commit is contained in:
Michael Snoyman 2018-04-09 16:38:31 +03:00 committed by GitHub
commit 06e0ffb48b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -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

View File

@ -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