on develop help sign in
Correcting documentation
commit26dcca5234f1dd0fbda5c7db6b57fcfd6325750a authorBrendan Hay <brendan.g.hay@gmail.com> dateSat 31 Oct 2015, 15:51 (11 years ago) parent687fc89
1 file changed+4−2
gogol/src/Network/Google/Auth/Scope.hs+4−2
gogol/src/Network/Google/Auth/Scope.hs+4−2
@@ -55,8 +55,8 @@ forbid = id
5555(!) :: proxy xs -> proxy ys -> Proxy (xs ++ ys)
5656(!) _ _ = Proxy
5757
58−-- | Determine if _any_ of the scopes a request requires is a subset
59−-- of the scopes the credentials supports.
58+-- | Determine if _any_ of the scopes a request requires is
59+-- listed in the scopes the credentials supports.
6060--
6161-- For error message/presentation purposes, this wraps the result of
6262-- the membership checks below.
@@ -67,10 +67,12 @@ type family MatchAnyScope a s where
6767 MatchAnyScope '[] s = 'True
6868 MatchAnyScope a (x ': xs) = x ∈ a || MatchAnyScope a xs
6969
70+-- | Set membership.
7071type family (∈) a b where
7172 (∈) x '[] = 'False
7273 (∈) x (y ': xs) = x == y || x ∈ xs
7374
75+-- | Append.
7476type family (++) xs ys where
7577 (++) a '[] = a
7678 (++) '[] b = b