Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #5 from meteficha/master

Add Functor instance to Response
  • Loading branch information...
commit 00a81bed1d7fcc854b229349dbeb4144de25da88 2 parents ae7129d + d2bf995
@snoyberg snoyberg authored
Showing with 5 additions and 1 deletion.
  1. +4 −0 Network/HTTP/Conduit/Response.hs
  2. +1 −1  http-conduit.cabal
View
4 Network/HTTP/Conduit/Response.hs
@@ -38,6 +38,10 @@ data Response body = Response
}
deriving (Show, Eq, Typeable)
+-- | Since 1.1.2.
+instance Functor Response where
+ fmap f (Response status headers body) = Response status headers (f body)
+
-- | Convert a 'Response' that has a 'C.BufferedSource' body to one with a lazy
-- 'L.ByteString' body.
lbsResponse :: C.Resource m
View
2  http-conduit.cabal
@@ -1,5 +1,5 @@
name: http-conduit
-version: 1.1.1
+version: 1.1.2
license: BSD3
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>
Please sign in to comment.
Something went wrong with that request. Please try again.