mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-11 19:58:28 +01:00
HLint
This commit is contained in:
parent
bed6d04384
commit
c416ab90d2
@ -78,5 +78,3 @@ makeCredentials region manager token = do
|
||||
case r of
|
||||
"cn" -> "api.battlenet.com.cn"
|
||||
_ -> E.encodeUtf8 r <> ".api.battle.net"
|
||||
|
||||
|
||||
|
||||
@ -50,7 +50,7 @@ instance FromJSON BitbucketUser where
|
||||
|
||||
parseJSON _ = mzero
|
||||
|
||||
data BitbucketUserLinks = BitbucketUserLinks
|
||||
newtype BitbucketUserLinks = BitbucketUserLinks
|
||||
{ bitbucketAvatarLink :: BitbucketLink
|
||||
}
|
||||
|
||||
@ -60,24 +60,24 @@ instance FromJSON BitbucketUserLinks where
|
||||
|
||||
parseJSON _ = mzero
|
||||
|
||||
data BitbucketLink = BitbucketLink
|
||||
newtype BitbucketLink = BitbucketLink
|
||||
{ bitbucketLinkHref :: Text
|
||||
}
|
||||
|
||||
instance FromJSON BitbucketLink where
|
||||
parseJSON (Object o) = BitbucketLink
|
||||
<$> o .: "href"
|
||||
|
||||
|
||||
parseJSON _ = mzero
|
||||
|
||||
data BitbucketEmailSearchResults = BitbucketEmailSearchResults
|
||||
newtype BitbucketEmailSearchResults = BitbucketEmailSearchResults
|
||||
{ bitbucketEmails :: [BitbucketUserEmail]
|
||||
}
|
||||
|
||||
instance FromJSON BitbucketEmailSearchResults where
|
||||
parseJSON (Object o) = BitbucketEmailSearchResults
|
||||
<$> o .: "values"
|
||||
|
||||
|
||||
parseJSON _ = mzero
|
||||
|
||||
data BitbucketUserEmail = BitbucketUserEmail
|
||||
|
||||
@ -41,7 +41,7 @@ instance FromJSON UpcaseUser where
|
||||
|
||||
parseJSON _ = mzero
|
||||
|
||||
data UpcaseResponse = UpcaseResponse UpcaseUser
|
||||
newtype UpcaseResponse = UpcaseResponse UpcaseUser
|
||||
|
||||
instance FromJSON UpcaseResponse where
|
||||
parseJSON (Object o) = UpcaseResponse
|
||||
|
||||
Loading…
Reference in New Issue
Block a user