on master help sign in
Mention the ‘Req’ monad in “embedding” section
29c4846mrkkrp
Network/HTTP/Req.hs+2−1
@@ -496,7 +496,8 @@ withReqManager m = liftIO (readIORef globalManager) >>= m
496-- When writing a library, keep your API polymorphic in terms of
496-- When writing a library, keep your API polymorphic in terms of
497-- 'MonadHttp', only define instance of 'MonadHttp' in final application.
497-- 'MonadHttp', only define instance of 'MonadHttp' in final application.
498-- Another option is to use @newtype@ wrapped monad stack and define
498-- Another option is to use @newtype@ wrapped monad stack and define
499−-- 'MonadHttp' for it.
499+-- 'MonadHttp' for it. As of version /0.4.0/, the 'Req' monad is provided
500+-- for this out-of-the-box.
500
501
501-- | A type class for monads that support performing HTTP requests.
502-- | A type class for monads that support performing HTTP requests.
502-- Typically, you only need to define the 'handleHttpException' method
503-- Typically, you only need to define the 'handleHttpException' method