packages feed

http-client 0.2.0.2 → 0.2.0.3

raw patch · 4 files changed

+10/−4 lines, 4 files

Files

Network/HTTP/Client.hs view
@@ -13,7 +13,9 @@ -- Secure HTTP connections can be allowed by modifying the settings used for -- creating a manager. The simplest way to create a @Manager@ is with: ----- > 'newManager' 'defaultManagerSettings'+-- @+-- 'newManager' 'defaultManagerSettings'+-- @ -- -- The next core component is a @Request@, which represents a single HTTP -- request to be sent to a specific server. @Request@s allow for many settings
Network/HTTP/Client/Manager.hs view
@@ -245,7 +245,7 @@     mapM_ (nonEmptyMapM_ safeConnClose) $ maybe [] Map.elems m  safeConnClose :: Connection -> IO ()-safeConnClose ci = connectionClose ci `catch` \(_::SomeException) -> return ()+safeConnClose ci = connectionClose ci `catch` \(_ :: IOException) -> return ()  nonEmptyMapM_ :: Monad m => (a -> m ()) -> NonEmptyList a -> m () nonEmptyMapM_ f (One x _) = f x
Network/HTTP/Client/Types.hs view
@@ -1,5 +1,7 @@ {-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-}+{-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE RankNTypes #-} module Network.HTTP.Client.Types     ( BodyReader (..)@@ -35,8 +37,10 @@ import Blaze.ByteString.Builder (Builder, fromLazyByteString, fromByteString, toLazyByteString) import Data.Int (Int64) import Data.Default+import Data.Foldable (Foldable) import Data.Monoid import Data.Time (UTCTime)+import Data.Traversable (Traversable) import qualified Data.List as DL import Network.Socket (HostAddress) import Data.IORef@@ -419,7 +423,7 @@     --     -- Since 0.1.0     }-    deriving (Show, Eq, T.Typeable, Functor)+    deriving (Show, Eq, T.Typeable, Functor, Foldable, Traversable)  newtype ResponseClose = ResponseClose { runResponseClose :: IO () }     deriving T.Typeable
http-client.cabal view
@@ -1,5 +1,5 @@ name:                http-client-version:             0.2.0.2+version:             0.2.0.3 synopsis:            An HTTP client engine, intended as a base layer for more user-friendly packages. description:         This codebase has been refactored from http-conduit. homepage:            https://github.com/snoyberg/http-client