git.iko.soy/typeable/bloodhound
on master help sign in
Merge pull request #71 from sjakobi/manager

Use "newManager" instead of deprecated "withManager"

commitb169376f6bda2a5f485dcdd2f0a01354ab1ea29e authorChris Allen <cma@bitemyapp.com> dateMon 14 Sep 2015, 00:39 (11 years ago) parent0e4c93f95e124e
1 file changed+2−1
src/Database/Bloodhound/Client.hs+2−1
src/Database/Bloodhound/Client.hs+2−1
@@ -202,7 +202,8 @@ bindM2 f ma mb = join (f <$> ma <*> mb)
202202-- settings in IO. If you've got your own monad transformer stack, you
203203-- should use 'runBH' directly.
204204withBH :: ManagerSettings -> Server -> BH IO a -> IO a
205−withBH ms s f = withManager ms $ \mgr -> do
205+withBH ms s f = do
206+ mgr <- newManager ms
206207 let env = BHEnv { bhServer = s
207208 , bhManager = mgr }
208209 runBH env f