@@ -115,7 +115,7 @@ newtype Store (s :: [Symbol]) = Store (MVar (Auth s))
115115
116116-- | Construct storage containing the credentials which have not yet been
117117-- exchanged or refreshed.
118−initStore :: (MonadIO m, MonadCatch m, Allow s)
118+initStore :: (MonadIO m, MonadCatch m, AllowScopes s)
119119 => Credentials s
120120 -> Logger
121121 -> Manager
@@ -124,7 +124,7 @@ initStore c l m = exchange c l m >>= fmap Store . liftIO . newMVar
124124
125125-- | Concurrently read the current token, and if expired, then
126126-- safely perform a single serial refresh.
127−getToken :: (MonadIO m, MonadCatch m, Allow s)
127+getToken :: (MonadIO m, MonadCatch m, AllowScopes s)
128128 => Store s
129129 -> Logger
130130 -> Manager
@@ -144,7 +144,7 @@ getToken (Store s) l m = do
144144
145145-- | Perform the initial credentials exchange to obtain a valid 'OAuthToken'
146146-- suitable for authorizing requests.
147−exchange :: (MonadIO m, MonadCatch m, Allow s)
147+exchange :: (MonadIO m, MonadCatch m, AllowScopes s)
148148 => Credentials s
149149 -> Logger
150150 -> Manager
@@ -158,7 +158,7 @@ exchange c l = fmap (Auth c) . action l
158158 FromUser u -> authorizedUserToken u Nothing
159159
160160-- | Refresh an existing 'OAuthToken' using
161−refresh :: (MonadIO m, MonadCatch m, Allow s)
161+refresh :: (MonadIO m, MonadCatch m, AllowScopes s)
162162 => Auth s
163163 -> Logger
164164 -> Manager
@@ -173,7 +173,7 @@ refresh (Auth c t) l = fmap (Auth c) . action l
173173
174174-- | Apply the (by way of possible token refresh) a bearer token to the
175175-- authentication header of a request.
176−authorize :: (MonadIO m, MonadCatch m, Allow s)
176+authorize :: (MonadIO m, MonadCatch m, AllowScopes s)
177177 => Client.Request
178178 -> Store s
179179 -> Logger