@@ -29,7 +29,7 @@ import Network.HTTP.Conduit
2929
3030-- | The environment containing the parameters required to make Google requests.
3131data Env (s :: [Symbol]) = Env
32− { _envOverride :: !(Dual (Endo Service))
32+ { _envOverride :: !(Dual (Endo ServiceConfig))
3333 , _envLogger :: !Logger
3434 , _envManager :: !Manager
3535 , _envStore :: !(Store s)
@@ -68,7 +68,7 @@ instance HasEnv s (Env s) where
6868-- To override a specific service, it's suggested you use
6969-- either 'configure' or 'reconfigure' with a modified version of the default
7070-- service, such as @Network.Google.Gmail.gmailService@.
71−override :: HasEnv s a => (Service -> Service) -> a -> a
71+override :: HasEnv s a => (Service -> ServiceConfig) -> a -> a
7272override f = envOverride <>~ Dual (Endo f)
7373
7474-- | Configure a specific service. All requests belonging to the
@@ -78,7 +78,7 @@ override f = envOverride <>~ Dual (Endo f)
7878-- as @Network.Google.Gmail.gmailService@.
7979--
8080-- /See:/ 'reconfigure'.
81−configure :: HasEnv s a => Service -> a -> a
81+configure :: HasEnv s a => ServiceConfig -> a -> a
8282configure s = override f
8383 where
8484 f x | on (==) _svcId s x = s
@@ -91,7 +91,7 @@ configure s = override f
9191-- as @Network.Google.Gmail.gmailService@.
9292--
9393-- /See:/ 'configure'.
94−reconfigure :: (MonadReader r m, HasEnv s r) => Service -> m a -> m a
94+reconfigure :: (MonadReader r m, HasEnv s r) => ServiceConfig -> m a -> m a
9595reconfigure = local . configure
9696
9797-- | Scope an action such that any HTTP response will use this timeout value.