@@ -176,9 +176,9 @@ dispatch dMethod url body = do
176176 initReq <- liftIO $ parseUrl' url
177177 reqHook <- bhRequestHook <$> getBHEnv
178178 let reqBody = RequestBodyLBS $ fromMaybe emptyBody body
179− req <- reqHook $ initReq { method = dMethod
180− , requestBody = reqBody
181− , checkStatus = \_ _ _ -> Nothing}
179+ req <- liftIO $ reqHook $ initReq { method = dMethod
180+ , requestBody = reqBody
181+ , checkStatus = \_ _ _ -> Nothing}
182182 mgr <- bhManager <$> getBHEnv
183183 liftIO $ httpLbs req mgr
184184