streaming-utils 0.1.4.6 → 0.1.4.7
raw patch · 3 files changed
+6/−6 lines, 3 filesdep ~streaming-commons
Dependency ranges changed: streaming-commons
Files
- Data/ByteString/Streaming/Aeson.hs +1/−1
- Data/ByteString/Streaming/HTTP.hs +3/−3
- streaming-utils.cabal +2/−2
Data/ByteString/Streaming/Aeson.hs view
@@ -34,7 +34,7 @@ > import Data.Text (Text) > import Data.Function ((&)) > main = do-> req <- parseUrl "https://raw.githubusercontent.com/ondrap/json-stream/master/benchmarks/json-data/buffer-builder.json"+> req <- parseRequest "https://raw.githubusercontent.com/ondrap/json-stream/master/benchmarks/json-data/buffer-builder.json" > m <- newManager tlsManagerSettings > withHTTP req m $ \resp -> do > let names, friend_names :: Parser Text
Data/ByteString/Streaming/HTTP.hs view
@@ -10,7 +10,7 @@ -- > import Data.ByteString.Streaming.HTTP -- > -- > main = do--- > req <- parseUrl "https://www.example.com"+-- > req <- parseRequest "https://www.example.com" -- > m <- newManager tlsManagerSettings -- > withHTTP req m $ \resp -> Q.stdout (responseBody resp) -- > @@ -23,7 +23,7 @@ -- > import Data.ByteString.Streaming.HTTP -- > -- > main = do--- > req <- parseUrl "https://www.example.com"+-- > req <- parseRequest "https://httpbin.org/post" -- > let req' = req -- > { method = "POST" -- > , requestBody = stream Q.stdin@@ -205,7 +205,7 @@ simpleHTTP :: MonadResource m => String -> ByteString m () simpleHTTP url = do man <- liftIO (newManager tlsManagerSettings)- req <- liftIO (parseUrl url)+ req <- liftIO (parseRequest url) bracketByteString (responseOpen req man) responseClose
streaming-utils.cabal view
@@ -1,5 +1,5 @@ name: streaming-utils-version: 0.1.4.6+version: 0.1.4.7 synopsis: http, attoparsec, pipes and other utilities for the streaming libraries description: This package includes http-client, aeson, attoparsec, zlib and pipes utilities for use with@@ -79,7 +79,7 @@ aeson > 0.8 && <1.2, json-stream > 0.4.0 && < 0.4.2, resourcet > 1.0 && < 1.2,- streaming-commons > 0.1.0 && < 0.1.17+ streaming-commons > 0.1.0 && < 0.1.18 -- hs-source-dirs: default-language: Haskell2010