http-api-data 0.6.1 → 0.6.2
raw patch · 3 files changed
+15/−9 lines, 3 filesdep ~basedep ~cookiedep ~text-show
Dependency ranges changed: base, cookie, text-show
Files
- CHANGELOG.md +5/−0
- http-api-data.cabal +9/−8
- src/Web/Internal/HttpApiData.hs +1/−1
CHANGELOG.md view
@@ -1,3 +1,8 @@+0.6.2++* Support GHC-9.12+* Require `cookie-0.5.1`+ 0.6.1 * Require at least GHC-8.6
http-api-data.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.12 name: http-api-data-version: 0.6.1+version: 0.6.2 synopsis: Converting to/from HTTP API data like URL pieces, headers and query parameters. category: Web@@ -29,9 +29,10 @@ GHC==9.0.2, GHC==9.2.8, GHC==9.4.8,- GHC==9.6.5,- GHC==9.8.2,- GHC==9.10.1+ GHC==9.6.7,+ GHC==9.8.4,+ GHC==9.10.1,+ GHC==9.12.2 flag use-text-show description: Use text-show library for efficient ToHttpApiData implementations.@@ -42,7 +43,7 @@ hs-source-dirs: src/ -- GHC bundled- build-depends: base >= 4.12.0.0 && < 4.21+ build-depends: base >= 4.12.0.0 && < 4.22 , bytestring >= 0.10.8.2 && < 0.13 , containers >= 0.6.0.1 && < 0.8 , text >= 1.2.3.0 && < 1.3 || >=2.0 && <2.2@@ -50,8 +51,8 @@ -- other-dependencies build-depends:- cookie >= 0.4.3 && < 0.6- , hashable >= 1.4.4.0 && < 1.5+ cookie >= 0.5.1 && < 0.6+ , hashable >= 1.4.4.0 && < 1.6 , http-types >= 0.12.4 && < 0.13 , text-iso8601 >= 0.1.1 && < 0.2 , tagged >= 0.8.8 && < 0.9@@ -61,7 +62,7 @@ if flag(use-text-show) cpp-options: -DUSE_TEXT_SHOW- build-depends: text-show >= 3.10.5 && <3.11+ build-depends: text-show >= 3.10.5 && <3.12 exposed-modules: Web.HttpApiData
src/Web/Internal/HttpApiData.hs view
@@ -870,7 +870,7 @@ -- | /Note:/ this instance works correctly for alphanumeric name and value -- -- >>> parseUrlPiece "SESSID=r2t5uvjq435r4q7ib3vtdjq120" :: Either Text SetCookie--- Right (SetCookie {setCookieName = "SESSID", setCookieValue = "r2t5uvjq435r4q7ib3vtdjq120", setCookiePath = Nothing, setCookieExpires = Nothing, setCookieMaxAge = Nothing, setCookieDomain = Nothing, setCookieHttpOnly = False, setCookieSecure = False, setCookieSameSite = Nothing})+-- Right (SetCookie {setCookieName = "SESSID", setCookieValue = "r2t5uvjq435r4q7ib3vtdjq120", setCookiePath = Nothing, setCookieExpires = Nothing, setCookieMaxAge = Nothing, setCookieDomain = Nothing, setCookieHttpOnly = False, setCookieSecure = False, setCookieSameSite = Nothing, setCookiePartitioned = False}) instance FromHttpApiData SetCookie where parseUrlPiece = parseHeader . encodeUtf8 parseHeader = Right . parseSetCookie