on master help sign in
Version bump (3.10.0)
ffa30b1Mark Karpov
CHANGELOG.md+1−1
@@ -1,4 +1,4 @@
1−## Req 3.9.3
1+## Req 3.10.0
2
2
3* Add `MonadHttp` instances for `transformers` types.
3* Add `MonadHttp` instances for `transformers` types.
4
4
Network/HTTP/Req.hs+15−15
@@ -801,77 +801,77 @@ instance MonadHttp Req where
801 handleHttpException = Req . lift . throwIO
801 handleHttpException = Req . lift . throwIO
802 getHttpConfig = Req ask
802 getHttpConfig = Req ask
803
803
804−-- | @since 3.9.3
804+-- | @since 3.10.0
805instance (MonadHttp m, Monoid w) => MonadHttp (AccumT w m) where
805instance (MonadHttp m, Monoid w) => MonadHttp (AccumT w m) where
806 handleHttpException = lift . handleHttpException
806 handleHttpException = lift . handleHttpException
807 getHttpConfig = lift getHttpConfig
807 getHttpConfig = lift getHttpConfig
808
808
809−-- | @since 3.9.3
809+-- | @since 3.10.0
810instance MonadHttp m => MonadHttp (ContT r m) where
810instance MonadHttp m => MonadHttp (ContT r m) where
811 handleHttpException = lift . handleHttpException
811 handleHttpException = lift . handleHttpException
812 getHttpConfig = lift getHttpConfig
812 getHttpConfig = lift getHttpConfig
813
813
814−-- | @since 3.9.3
814+-- | @since 3.10.0
815instance MonadHttp m => MonadHttp (ExceptT e m) where
815instance MonadHttp m => MonadHttp (ExceptT e m) where
816 handleHttpException = lift . handleHttpException
816 handleHttpException = lift . handleHttpException
817 getHttpConfig = lift getHttpConfig
817 getHttpConfig = lift getHttpConfig
818
818
819−-- | @since 3.9.3
819+-- | @since 3.10.0
820instance MonadHttp m => MonadHttp (IdentityT m) where
820instance MonadHttp m => MonadHttp (IdentityT m) where
821 handleHttpException = lift . handleHttpException
821 handleHttpException = lift . handleHttpException
822 getHttpConfig = lift getHttpConfig
822 getHttpConfig = lift getHttpConfig
823
823
824−-- | @since 3.9.3
824+-- | @since 3.10.0
825instance MonadHttp m => MonadHttp (MaybeT m) where
825instance MonadHttp m => MonadHttp (MaybeT m) where
826 handleHttpException = lift . handleHttpException
826 handleHttpException = lift . handleHttpException
827 getHttpConfig = lift getHttpConfig
827 getHttpConfig = lift getHttpConfig
828
828
829−-- | @since 3.9.3
829+-- | @since 3.10.0
830instance MonadHttp m => MonadHttp (ReaderT r m) where
830instance MonadHttp m => MonadHttp (ReaderT r m) where
831 handleHttpException = lift . handleHttpException
831 handleHttpException = lift . handleHttpException
832 getHttpConfig = lift getHttpConfig
832 getHttpConfig = lift getHttpConfig
833
833
834−-- | @since 3.9.3
834+-- | @since 3.10.0
835instance (MonadHttp m, Monoid w) => MonadHttp (RWS.CPS.RWST r w s m) where
835instance (MonadHttp m, Monoid w) => MonadHttp (RWS.CPS.RWST r w s m) where
836 handleHttpException = lift . handleHttpException
836 handleHttpException = lift . handleHttpException
837 getHttpConfig = lift getHttpConfig
837 getHttpConfig = lift getHttpConfig
838
838
839−-- | @since 3.9.3
839+-- | @since 3.10.0
840instance (MonadHttp m, Monoid w) => MonadHttp (RWS.Lazy.RWST r w s m) where
840instance (MonadHttp m, Monoid w) => MonadHttp (RWS.Lazy.RWST r w s m) where
841 handleHttpException = lift . handleHttpException
841 handleHttpException = lift . handleHttpException
842 getHttpConfig = lift getHttpConfig
842 getHttpConfig = lift getHttpConfig
843
843
844−-- | @since 3.9.3
844+-- | @since 3.10.0
845instance (MonadHttp m, Monoid w) => MonadHttp (RWS.Strict.RWST r w s m) where
845instance (MonadHttp m, Monoid w) => MonadHttp (RWS.Strict.RWST r w s m) where
846 handleHttpException = lift . handleHttpException
846 handleHttpException = lift . handleHttpException
847 getHttpConfig = lift getHttpConfig
847 getHttpConfig = lift getHttpConfig
848
848
849−-- | @since 3.9.3
849+-- | @since 3.10.0
850instance MonadHttp m => MonadHttp (SelectT r m) where
850instance MonadHttp m => MonadHttp (SelectT r m) where
851 handleHttpException = lift . handleHttpException
851 handleHttpException = lift . handleHttpException
852 getHttpConfig = lift getHttpConfig
852 getHttpConfig = lift getHttpConfig
853
853
854−-- | @since 3.9.3
854+-- | @since 3.10.0
855instance MonadHttp m => MonadHttp (State.Lazy.StateT s m) where
855instance MonadHttp m => MonadHttp (State.Lazy.StateT s m) where
856 handleHttpException = lift . handleHttpException
856 handleHttpException = lift . handleHttpException
857 getHttpConfig = lift getHttpConfig
857 getHttpConfig = lift getHttpConfig
858
858
859−-- | @since 3.9.3
859+-- | @since 3.10.0
860instance MonadHttp m => MonadHttp (State.Strict.StateT s m) where
860instance MonadHttp m => MonadHttp (State.Strict.StateT s m) where
861 handleHttpException = lift . handleHttpException
861 handleHttpException = lift . handleHttpException
862 getHttpConfig = lift getHttpConfig
862 getHttpConfig = lift getHttpConfig
863
863
864−-- | @since 3.9.3
864+-- | @since 3.10.0
865instance (MonadHttp m, Monoid w) => MonadHttp (Writer.CPS.WriterT w m) where
865instance (MonadHttp m, Monoid w) => MonadHttp (Writer.CPS.WriterT w m) where
866 handleHttpException = lift . handleHttpException
866 handleHttpException = lift . handleHttpException
867 getHttpConfig = lift getHttpConfig
867 getHttpConfig = lift getHttpConfig
868
868
869−-- | @since 3.9.3
869+-- | @since 3.10.0
870instance (MonadHttp m, Monoid w) => MonadHttp (Writer.Lazy.WriterT w m) where
870instance (MonadHttp m, Monoid w) => MonadHttp (Writer.Lazy.WriterT w m) where
871 handleHttpException = lift . handleHttpException
871 handleHttpException = lift . handleHttpException
872 getHttpConfig = lift getHttpConfig
872 getHttpConfig = lift getHttpConfig
873
873
874−-- | @since 3.9.3
874+-- | @since 3.10.0
875instance (MonadHttp m, Monoid w) => MonadHttp (Writer.Strict.WriterT w m) where
875instance (MonadHttp m, Monoid w) => MonadHttp (Writer.Strict.WriterT w m) where
876 handleHttpException = lift . handleHttpException
876 handleHttpException = lift . handleHttpException
877 getHttpConfig = lift getHttpConfig
877 getHttpConfig = lift getHttpConfig
req.cabal+13−13
@@ -1,6 +1,6 @@
1cabal-version: 1.18
1cabal-version: 1.18
2name: req
2name: req
3−version: 3.9.2
3+version: 3.10.0
4license: BSD3
4license: BSD3
5license-file: LICENSE.md
5license-file: LICENSE.md
6maintainer: Mark Karpov <markkarpov92@gmail.com>
6maintainer: Mark Karpov <markkarpov92@gmail.com>
@@ -68,12 +68,12 @@ library
68 -Wnoncanonical-monad-instances
68 -Wnoncanonical-monad-instances
69
69
70test-suite pure-tests
70test-suite pure-tests
71− type: exitcode-stdio-1.0
71+ type: exitcode-stdio-1.0
72− main-is: Spec.hs
72+ main-is: Spec.hs
73− build-tools: hspec-discover >=2.0 && <3.0
73+ build-tool-depends: hspec-discover:hspec-discover >=2.0 && <3.0
74− hs-source-dirs: pure-tests
74+ hs-source-dirs: pure-tests
75− other-modules: Network.HTTP.ReqSpec
75+ other-modules: Network.HTTP.ReqSpec
76− default-language: Haskell2010
76+ default-language: Haskell2010
77 build-depends:
77 build-depends:
78 QuickCheck >=2.7 && <3.0,
78 QuickCheck >=2.7 && <3.0,
79 aeson >=0.9 && <3,
79 aeson >=0.9 && <3,
@@ -100,12 +100,12 @@ test-suite pure-tests
100 ghc-options: -O2 -Wall
100 ghc-options: -O2 -Wall
101
101
102test-suite httpbin-tests
102test-suite httpbin-tests
103− type: exitcode-stdio-1.0
103+ type: exitcode-stdio-1.0
104− main-is: Spec.hs
104+ main-is: Spec.hs
105− build-tools: hspec-discover >=2.0 && <3.0
105+ build-tool-depends: hspec-discover:hspec-discover >=2.0 && <3.0
106− hs-source-dirs: httpbin-tests
106+ hs-source-dirs: httpbin-tests
107− other-modules: Network.HTTP.ReqSpec
107+ other-modules: Network.HTTP.ReqSpec
108− default-language: Haskell2010
108+ default-language: Haskell2010
109 build-depends:
109 build-depends:
110 QuickCheck >=2.7 && <3.0,
110 QuickCheck >=2.7 && <3.0,
111 aeson >=2 && <3,
111 aeson >=2 && <3,