HasHttpManager used to be in http-conduit before http-client 0.4.19

This commit is contained in:
Christian Klinger 2016-09-06 13:44:56 +02:00
parent 7b57b98368
commit c709626fed
2 changed files with 8 additions and 0 deletions

View file

@ -53,6 +53,7 @@ library
, text >= 1.2 && < 1.3 , text >= 1.2 && < 1.3
, transformers >= 0.3 && < 0.6 , transformers >= 0.3 && < 0.6
, transformers-compat >= 0.4 && < 0.6 , transformers-compat >= 0.4 && < 0.6
, http-conduit
, mtl , mtl
hs-source-dirs: src hs-source-dirs: src
default-language: Haskell2010 default-language: Haskell2010

View file

@ -21,6 +21,13 @@ import Control.Monad.Error.Class (MonadError(..))
#endif #endif
import Control.Monad.Trans.Except import Control.Monad.Trans.Except
#if MIN_VERSION_http_client(0,4,19)
import Network.HTTP.Client ( HasHttpManager )
#else
import Network.HTTP.Client.Conduit ( HasHttpManager(getHttpManager) )
#endif
import GHC.Generics import GHC.Generics
import Control.Monad.IO.Class () import Control.Monad.IO.Class ()
import Control.Monad.Reader import Control.Monad.Reader