hack2-contrib 2012.1.19.1 → 2012.5.15
raw patch · 2 files changed
+2/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- Hack2.Contrib.Response: set_content_length :: Integral a => a -> Response -> Response
+ Hack2.Contrib.Response: set_content_length :: (Integral a, Show a) => a -> Response -> Response
Files
- hack2-contrib.cabal +1/−1
- src/Hack2/Contrib/Response.hs +1/−1
hack2-contrib.cabal view
@@ -1,5 +1,5 @@ Name: hack2-contrib-Version: 2012.1.19.1+Version: 2012.5.15 Build-type: Simple Synopsis: Hack2 contrib Description: Common middlewares and utilities that helps working with Hack2
src/Hack2/Contrib/Response.hs view
@@ -44,7 +44,7 @@ set_content_type :: ByteString -> Response -> Response set_content_type s r = r.set_header _ContentType s -set_content_length :: (Integral a) => a -> Response -> Response+set_content_length :: (Integral a, Show a) => a -> Response -> Response set_content_length i r = r.set_header _ContentLength (i.show_bytestring) set_body :: ByteString -> Response -> Response