Skip to content

Commit

Permalink
Version bump (3.10.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkkrp committed Feb 3, 2022
1 parent e30728f commit ffa30b1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Req 3.9.3
## Req 3.10.0

* Add `MonadHttp` instances for `transformers` types.

Expand Down
30 changes: 15 additions & 15 deletions Network/HTTP/Req.hs
Original file line number Diff line number Diff line change
Expand Up @@ -801,77 +801,77 @@ instance MonadHttp Req where
handleHttpException = Req . lift . throwIO
getHttpConfig = Req ask

-- | @since 3.9.3
-- | @since 3.10.0
instance (MonadHttp m, Monoid w) => MonadHttp (AccumT w m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig

-- | @since 3.9.3
-- | @since 3.10.0
instance MonadHttp m => MonadHttp (ContT r m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig

-- | @since 3.9.3
-- | @since 3.10.0
instance MonadHttp m => MonadHttp (ExceptT e m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig

-- | @since 3.9.3
-- | @since 3.10.0
instance MonadHttp m => MonadHttp (IdentityT m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig

-- | @since 3.9.3
-- | @since 3.10.0
instance MonadHttp m => MonadHttp (MaybeT m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig

-- | @since 3.9.3
-- | @since 3.10.0
instance MonadHttp m => MonadHttp (ReaderT r m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig

-- | @since 3.9.3
-- | @since 3.10.0
instance (MonadHttp m, Monoid w) => MonadHttp (RWS.CPS.RWST r w s m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig

-- | @since 3.9.3
-- | @since 3.10.0
instance (MonadHttp m, Monoid w) => MonadHttp (RWS.Lazy.RWST r w s m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig

-- | @since 3.9.3
-- | @since 3.10.0
instance (MonadHttp m, Monoid w) => MonadHttp (RWS.Strict.RWST r w s m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig

-- | @since 3.9.3
-- | @since 3.10.0
instance MonadHttp m => MonadHttp (SelectT r m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig

-- | @since 3.9.3
-- | @since 3.10.0
instance MonadHttp m => MonadHttp (State.Lazy.StateT s m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig

-- | @since 3.9.3
-- | @since 3.10.0
instance MonadHttp m => MonadHttp (State.Strict.StateT s m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig

-- | @since 3.9.3
-- | @since 3.10.0
instance (MonadHttp m, Monoid w) => MonadHttp (Writer.CPS.WriterT w m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig

-- | @since 3.9.3
-- | @since 3.10.0
instance (MonadHttp m, Monoid w) => MonadHttp (Writer.Lazy.WriterT w m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig

-- | @since 3.9.3
-- | @since 3.10.0
instance (MonadHttp m, Monoid w) => MonadHttp (Writer.Strict.WriterT w m) where
handleHttpException = lift . handleHttpException
getHttpConfig = lift getHttpConfig
Expand Down
26 changes: 13 additions & 13 deletions req.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.18
name: req
version: 3.9.2
version: 3.10.0
license: BSD3
license-file: LICENSE.md
maintainer: Mark Karpov <[email protected]>
Expand Down Expand Up @@ -68,12 +68,12 @@ library
-Wnoncanonical-monad-instances

test-suite pure-tests
type: exitcode-stdio-1.0
main-is: Spec.hs
build-tools: hspec-discover >=2.0 && <3.0
hs-source-dirs: pure-tests
other-modules: Network.HTTP.ReqSpec
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: Spec.hs
build-tool-depends: hspec-discover:hspec-discover >=2.0 && <3.0
hs-source-dirs: pure-tests
other-modules: Network.HTTP.ReqSpec
default-language: Haskell2010
build-depends:
QuickCheck >=2.7 && <3.0,
aeson >=0.9 && <3,
Expand All @@ -100,12 +100,12 @@ test-suite pure-tests
ghc-options: -O2 -Wall

test-suite httpbin-tests
type: exitcode-stdio-1.0
main-is: Spec.hs
build-tools: hspec-discover >=2.0 && <3.0
hs-source-dirs: httpbin-tests
other-modules: Network.HTTP.ReqSpec
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: Spec.hs
build-tool-depends: hspec-discover:hspec-discover >=2.0 && <3.0
hs-source-dirs: httpbin-tests
other-modules: Network.HTTP.ReqSpec
default-language: Haskell2010
build-depends:
QuickCheck >=2.7 && <3.0,
aeson >=2 && <3,
Expand Down

0 comments on commit ffa30b1

Please sign in to comment.