on develop help sign in
Renaming for error purposes
commit3a1fa99991ee47d73d56814a7f1e41f205fe11cf authorBrendan Hay <brendan.g.hay@gmail.com> dateSat 31 Oct 2015, 15:46 (11 years ago) parentc2b7162
2 files changed+5−5
gogol/src/Network/Google.hs+1−1 gogol/src/Network/Google/Auth/Scope.hs+4−4
gogol/src/Network/Google.hs+1−1
@@ -49,7 +49,7 @@ module Network.Google
4949 , (!)
5050
5151 , type Authorize
52− , type HasScope
52+ , type MatchAnyScope
5353
5454 -- * Sending Requests
5555 , send
gogol/src/Network/Google/Auth/Scope.hs+4−4
@@ -61,11 +61,11 @@ forbid = id
6161-- For error message/presentation purposes, this wraps the result of
6262-- the membership checks below.
6363type family Authorize (s :: [Symbol]) a :: Constraint where
64− Authorize s a = HasScope (Scopes a) s ~ 'True
64+ Authorize s a = MatchAnyScope (Scopes a) s ~ 'True
6565
66−type family HasScope a s where
67− HasScope '[] s = 'True
68− HasScope a (x ': xs) = x ∈ a || HasScope a xs
66+type family MatchAnyScope a s where
67+ MatchAnyScope '[] s = 'True
68+ MatchAnyScope a (x ': xs) = x ∈ a || MatchAnyScope a xs
6969
7070type family (∈) a b where
7171 (∈) x '[] = 'False