packages feed

http-types 0.6.3 → 0.6.4

raw patch · 2 files changed

+10/−5 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Network/HTTP/Types.hs view
@@ -375,7 +375,7 @@             _ -> q     parseQueryString' q | B.null q = []     parseQueryString' q =-        let (x, xs) = breakDiscard 38 q -- ampersand+        let (x, xs) = breakDiscard queryStringSeparators q          in parsePair x : parseQueryString' xs       where         parsePair x =@@ -386,9 +386,14 @@                         _ -> Nothing              in (urlDecode True k, v'') -breakDiscard :: Word8 -> B.ByteString -> (B.ByteString, B.ByteString)-breakDiscard w s =-    let (x, y) = B.breakByte w s+queryStringSeparators :: B.ByteString+queryStringSeparators = B.pack [38,59] -- ampersand, semicolon++-- | Break the second bytestring at the first occurence of any bytes from+-- the first bytestring, discarding that byte.+breakDiscard :: B.ByteString -> B.ByteString -> (B.ByteString, B.ByteString)+breakDiscard seps s =+    let (x, y) = B.break (`B.elem` seps) s      in (x, B.drop 1 y)  -- | Parse 'SimpleQuery' from a 'ByteString'.
http-types.cabal view
@@ -7,7 +7,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented.-Version:             0.6.3+Version:             0.6.4  -- A short (one-line) description of the package. Synopsis:            Generic HTTP types for Haskell (for both client and server code).