packages feed

cookie 0.4.1.3 → 0.4.1.4

raw patch · 3 files changed

+13/−8 lines, 3 filesdep +tastydep +tasty-hunitdep +tasty-quickcheckdep −test-frameworkdep −test-framework-hunitdep −test-framework-quickcheck2dep ~bytestringdep ~timePVP ok

version bump matches the API change (PVP)

Dependencies added: tasty, tasty-hunit, tasty-quickcheck

Dependencies removed: test-framework, test-framework-hunit, test-framework-quickcheck2

Dependency ranges changed: bytestring, time

API changes (from Hackage documentation)

Files

Web/Cookie.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} module Web.Cookie     ( -- * Server to client@@ -39,7 +40,11 @@ import Data.Ratio (numerator, denominator) import Data.Time (UTCTime (UTCTime), toGregorian, fromGregorian, formatTime, parseTime) import Data.Time.Clock (DiffTime, secondsToDiffTime)+#if MIN_VERSION_time(1, 5, 0)+import Data.Time (defaultTimeLocale)+#else import System.Locale (defaultTimeLocale)+#endif import Control.Arrow (first) import Data.Text (Text) import Data.Text.Encoding (encodeUtf8, decodeUtf8With)
cookie.cabal view
@@ -1,5 +1,5 @@ name:            cookie-version:         0.4.1.3+version:         0.4.1.4 license:         BSD3 license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>@@ -33,9 +33,9 @@                  , blaze-builder                  , bytestring                  , cookie-                 , test-framework-                 , test-framework-hunit-                 , test-framework-quickcheck2+                 , tasty+                 , tasty-hunit+                 , tasty-quickcheck                  , text                  -- Bug in time 1.4.0, see:                  -- https://github.com/snoyberg/cookie/issues/9
test/Spec.hs view
@@ -1,6 +1,6 @@-import Test.Framework (defaultMain)-import Test.Framework.Providers.QuickCheck2 (testProperty)-import Test.Framework.Providers.HUnit (testCase)+import Test.Tasty (defaultMain, testGroup)+import Test.Tasty.QuickCheck (testProperty)+import Test.Tasty.HUnit (testCase) import Test.QuickCheck import Test.HUnit ((@=?), Assertion) @@ -16,7 +16,7 @@ import qualified Data.Text as T  main :: IO ()-main = defaultMain+main = defaultMain $ testGroup "cookie"     [ testProperty "parse/render cookies" propParseRenderCookies     , testProperty "parse/render SetCookie" propParseRenderSetCookie     , testProperty "parse/render cookies text" propParseRenderCookiesText