wai-test 1.2.0.2 → 1.3.0
raw patch · 2 files changed
+6/−12 lines, 2 filesdep ~blaze-builder-conduitdep ~conduitdep ~http-typesPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: blaze-builder-conduit, conduit, http-types, wai
API changes (from Hackage documentation)
Files
- Network/Wai/Test.hs +1/−7
- wai-test.cabal +5/−5
Network/Wai/Test.hs view
@@ -99,18 +99,12 @@ runResponse :: Response -> C.ResourceT IO SResponse runResponse res = do- bss <- fmap2 toBuilder body C.$= builderToByteString C.$$ CL.consume+ bss <- C.mapOutput 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--fmap2 :: Functor m => (a -> b) -> C.Source m a -> C.Source m b-fmap2 f (C.HaveOutput p c o) = C.HaveOutput (fmap2 f p) c (f o)-fmap2 f (C.NeedInput p c) = C.NeedInput (fmap2 f . p) (fmap2 f c)-fmap2 _ (C.Done i r) = C.Done i r-fmap2 f (C.PipeM mp c) = C.PipeM (fmap (fmap2 f) mp) c 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.2.0.2+version: 1.3.0 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>@@ -14,17 +14,17 @@ library build-depends: base >= 4 && < 5- , wai >= 1.2 && < 1.3+ , wai >= 1.3 && < 1.4 , bytestring >= 0.9.1.4 , text >= 0.7 && < 0.12 , blaze-builder >= 0.2.1.4 && < 0.4 , transformers >= 0.2.2 && < 0.4 , containers >= 0.2- , conduit >= 0.4 && < 0.5- , blaze-builder-conduit >= 0.4 && < 0.5+ , conduit >= 0.5 && < 0.6+ , blaze-builder-conduit >= 0.5 && < 0.6 , cookie >= 0.2 && < 0.5 , HUnit >= 1.2 && < 1.3- , http-types >= 0.6 && < 0.7+ , http-types >= 0.7 && < 0.8 , case-insensitive >= 0.2 exposed-modules: Network.Wai.Test ghc-options: -Wall