packages feed

wai-test 1.0.0 → 1.1.0

raw patch · 2 files changed

+8/−5 lines, 2 filesdep ~blaze-builder-conduitdep ~conduitdep ~waiPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: blaze-builder-conduit, conduit, wai

API changes (from Hackage documentation)

Files

Network/Wai/Test.hs view
@@ -27,6 +27,7 @@ import Data.ByteString (ByteString) import qualified Data.ByteString.Char8 as S8 import Data.Conduit.Blaze (builderToByteString)+import Blaze.ByteString.Builder (flush) import qualified Data.ByteString.Lazy as L import qualified Data.ByteString.Lazy.Char8 as L8 import qualified Network.HTTP.Types as H@@ -90,10 +91,12 @@  runResponse :: Response -> C.ResourceT IO SResponse runResponse res = do-    bss <- body C.$= builderToByteString C.$$ CL.consume+    bss <- fmap toBuilder body C.$= builderToByteString C.$$ CL.consume     return $ SResponse s h $ L.fromChunks bss   where     (s, h, body) = responseSource res+    toBuilder (C.Chunk builder) = builder+    toBuilder C.Flush = flush  assertBool :: String -> Bool -> Session () assertBool s b = liftIO $ H.assertBool s b
wai-test.cabal view
@@ -1,5 +1,5 @@ name:            wai-test-version:         1.0.0+version:         1.1.0 license:         BSD3 license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>@@ -14,13 +14,13 @@  library     build-depends:   base                      >= 4        && < 5-                   , wai                       >= 1.0      && < 1.1+                   , wai                       >= 1.1      && < 1.2                    , bytestring                >= 0.9.1.4  && < 0.10                    , blaze-builder             >= 0.2.1.4  && < 0.4                    , transformers              >= 0.2.2    && < 0.3                    , containers                >= 0.2      && < 0.5-                   , conduit-                   , blaze-builder-conduit     >= 0.0      && < 0.1+                   , conduit                   >= 0.2+                   , blaze-builder-conduit     >= 0.2      && < 0.3                    , cookie                    >= 0.2      && < 0.4                    , HUnit                     >= 1.2      && < 1.3                    , http-types                >= 0.6      && < 0.7