on master help sign in
Make ‘Req’ an instance of ‘MonadUnliftIO’
commit68fafd44d87f6f6d56481917110f73d2fa234259 authorShlomo Shuck <sjshuck@us.ibm.com> dateThu 6 Aug 2020, 11:20 (6 years ago) parent1872568
3 files changed+10−2
CHANGELOG.md+5 Network/HTTP/Req.hs+3−1 req.cabal+2−1
CHANGELOG.md+5
@@ -1,3 +1,8 @@
1+## Req 3.5.0
2+
3+* Made `Req` an instance of `MonadUnliftIO`. [Issue
4+ 100](https://github.com/mrkkrp/req/issues/100).
5+
16## Req 3.4.0
27
38* Requests using `DELETE` method can now have a body. [Issue
Network/HTTP/Req.hs+3−1
@@ -237,6 +237,7 @@ import Control.Exception hiding (Handler (..), TypeError)
237237import Control.Monad.Base
238238import Control.Monad.Catch (Handler (..))
239239import Control.Monad.IO.Class
240+import Control.Monad.IO.Unlift
240241import Control.Monad.Reader
241242import Control.Monad.Trans.Control
242243import Control.Retry
@@ -719,7 +720,8 @@ newtype Req a = Req (ReaderT HttpConfig IO a)
719720 ( Functor,
720721 Applicative,
721722 Monad,
722− MonadIO
723+ MonadIO,
724+ MonadUnliftIO
723725 )
724726
725727instance MonadBase IO Req where
req.cabal+2−1
@@ -57,7 +57,8 @@ library
5757 text >=0.2 && <1.3,
5858 time >=1.2 && <1.10,
5959 transformers >=0.4 && <0.6,
60− transformers-base -any
60+ transformers-base -any,
61+ unliftio-core >=0.1.1 && <0.3
6162
6263 if flag(dev)
6364 ghc-options: -O0 -Wall -Werror