Permalink
Browse files

Merge pull request #5 from meteficha/master

Add Functor instance to Response
  • Loading branch information...
2 parents ae7129d + d2bf995 commit 00a81bed1d7fcc854b229349dbeb4144de25da88 @snoyberg snoyberg committed Jan 17, 2012
Showing with 5 additions and 1 deletion.
  1. +4 −0 Network/HTTP/Conduit/Response.hs
  2. +1 −1 http-conduit.cabal
@@ -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
@@ -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>

0 comments on commit 00a81be

Please sign in to comment.