packages feed

cookie 0.4.1.2 → 0.4.1.3

raw patch · 2 files changed

+8/−3 lines, 2 filesdep ~timePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: time

API changes (from Hackage documentation)

Files

cookie.cabal view
@@ -1,5 +1,5 @@ name:            cookie-version:         0.4.1.2+version:         0.4.1.3 license:         BSD3 license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>@@ -37,7 +37,9 @@                  , test-framework-hunit                  , test-framework-quickcheck2                  , text-                 , time+                 -- Bug in time 1.4.0, see:+                 -- https://github.com/snoyberg/cookie/issues/9+                 , time >= 1.4.0.2  source-repository head   type:     git
test/Spec.hs view
@@ -90,7 +90,10 @@     testCase ("year " ++ show x) (y @=? year)   where     (year, _, _) = toGregorian day-    Just (UTCTime day _) = setCookieExpires sc+    day =+        case setCookieExpires sc of+            Just (UTCTime day _) -> day+            Nothing -> error $ "setCookieExpires == Nothing for: " ++ show str     sc = parseSetCookie str     str = S8.pack $ concat         [ "foo=bar; Expires=Mon, 29-Jul-"