on master help sign in
Mention the ‘Req’ monad in “embedding” section

[skip ci]

commit29c4846fc3b0856457700ca8b9c82c7546ebd188 authormrkkrp <markkarpov@opmbx.org> dateMon 7 Aug 2017, 19:02 (9 years ago) parent87e4fb0
1 file changed+2−1
Network/HTTP/Req.hs+2−1
Network/HTTP/Req.hs+2−1
@@ -496,7 +496,8 @@ withReqManager m = liftIO (readIORef globalManager) >>= m
496496-- When writing a library, keep your API polymorphic in terms of
497497-- 'MonadHttp', only define instance of 'MonadHttp' in final application.
498498-- 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.
500501
501502-- | A type class for monads that support performing HTTP requests.
502503-- Typically, you only need to define the 'handleHttpException' method