packages feed

streaming-utils 0.2.0.0 → 0.2.1.0

raw patch · 2 files changed

+35/−25 lines, 2 filesdep ~attoparsecdep ~http-clientdep ~streaming-bytestringnew-uploaderPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: attoparsec, http-client, streaming-bytestring

API changes (from Hackage documentation)

+ Streaming.Zip: decompressAll :: MonadIO m => WindowBits -> ByteString m r -> ByteString m r
- Streaming.Network.TCP: withSocketsDo :: () => IO a -> IO a
+ Streaming.Network.TCP: withSocketsDo :: IO a -> IO a
- Streaming.Pipes: intercalates :: (Monad m, Monad (t m), MonadTrans t) => t m x -> Stream (t m) m r -> t m r
+ Streaming.Pipes: intercalates :: forall (m :: Type -> Type) t x r. (Monad m, Monad (t m), MonadTrans t) => t m x -> Stream (t m) m r -> t m r
- Streaming.Pipes: maps :: (Monad m, Functor f) => (forall x. () => f x -> g x) -> Stream f m r -> Stream g m r
+ Streaming.Pipes: maps :: forall (m :: Type -> Type) f g r. (Monad m, Functor f) => (forall x. () => f x -> g x) -> Stream f m r -> Stream g m r
- Streaming.Pipes: takes :: (Monad m, Functor f) => Int -> Stream f m r -> Stream f m ()
+ Streaming.Pipes: takes :: forall (m :: Type -> Type) (f :: Type -> Type) r. (Monad m, Functor f) => Int -> Stream f m r -> Stream f m ()

Files

Streaming/Zip.hs view
@@ -4,6 +4,7 @@     -- * Streams       decompress     , decompress'+    , decompressAll     , compress     , gunzip     , gunzip'@@ -82,6 +83,14 @@                then go p' inf                else return $ Left (chunk leftover >> p') {-# INLINABLE decompress' #-}++-- | Keep decompressing a compressed bytestream until exhausted.+decompressAll :: MonadIO m => Z.WindowBits -> ByteString m r -> ByteString m r+decompressAll w bs = decompress' w bs >>= go+  where+    go (Left bs) = decompress' w bs >>= go+    go (Right r) = return r+{-# INLINABLE decompressAll #-}  -- | Compress a byte stream. --
streaming-utils.cabal view
@@ -1,12 +1,12 @@ name:                streaming-utils-version:             0.2.0.0+version:             0.2.1.0 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-                     the <http://hackage.haskell.org/package/streaming streaming> and -                     <http://hackage.haskell.org/package/streaming-bytestring streaming bytestring> libraries. -                     The modules generally closely follow similarly named modules in the pipes -                     \'ecosystem\', using similar function names, where possible. +                     the <http://hackage.haskell.org/package/streaming streaming> and+                     <http://hackage.haskell.org/package/streaming-bytestring streaming bytestring> libraries.+                     The modules generally closely follow similarly named modules in the pipes+                     \'ecosystem\', using similar function names, where possible.                      .                      Thus, for example, using the http client module, we might number the lines                      of a remote document thus:@@ -16,34 +16,34 @@                      > import qualified Streaming.Prelude as S                      > import Data.ByteString.Streaming.HTTP                      > import qualified Data.ByteString.Streaming.Char8 as Q-                     > -                     > main =  runResourceT $ do +                     >+                     > main =  runResourceT $ do                      >    let output = numbers <|> Q.lines (simpleHTTP "http://lpaste.net/raw/146542")                      >    Q.putStrLn $ Q.unlines output-                     > -                     > numbers :: Monad m => Stream (Q.ByteString m) m () +                     >+                     > numbers :: Monad m => Stream (Q.ByteString m) m ()                      > numbers = with (each [1..]) $ \n -> Q.pack (each (show n ++ ".  "))                      > -- ["1. ", "2. " ..]                      .-                     The memory requirements of this @Prelude@-ish program will not be +                     The memory requirements of this @Prelude@-ish program will not be                      affected by the fact that, say, the third \'line\' is 10 terabytes long.                      .                      This package of course heaps together a number of dependencies, as it                      seemed best not to spam hackage with numerous packages. If it seems                      reasonable to detach some of it, please raise an issue on the github page.                      .-                     Questions about usage can be raised as issues, or addressed to the +                     Questions about usage can be raised as issues, or addressed to the                      <https://groups.google.com/forum/#!forum/haskell-pipes pipes list>.-                      + license:             BSD3 license-file:        LICENSE author:              michaelt maintainer:          chessai1996@gmail.com--- copyright:           +-- copyright: build-type:          Simple category:            Data, Pipes, Streaming--- extra-source-files:  +-- extra-source-files: cabal-version:       >=1.10 stability:           Experimental homepage:            https://github.com/michaelt/streaming-utils@@ -60,25 +60,26 @@                        , Streaming.Network.TCP                        , Streaming.Zip -  -- other-modules:       +  -- other-modules:   other-extensions:    CPP, Trustworthy-  -  build-depends:       base >=4.8 && <5.0, -                       transformers >=0.4 && <0.6, ++  build-depends:       base >=4.8 && <5.0,+                       transformers >=0.4 && <0.6,                        mtl >=2.2 && <2.3,-                       attoparsec > 0.13.0.0 && < 0.14,+                       attoparsec > 0.13.0.0 && < 0.15,                        streaming >=  0.2 && < 0.3,-                       streaming-bytestring >= 0.1 && < 0.2,+                       streaming-bytestring >= 0.1 && < 0.3,                        bytestring > 0.10 && < 0.11,                        pipes >= 4.0 && < 4.4,                        network-simple,-                       network, -                       http-client >=0.2 && <0.7, +                       network,+                       http-client >=0.2 && <0.8,                        http-client-tls,-                       aeson > 0.8 && <1.5,+                       aeson > 0.8 && <1.6,                        json-stream > 0.4 && < 0.5,                        resourcet > 1.0 && < 1.3,                        streaming-commons > 0.2 && < 0.3-                      -  -- hs-source-dirs:      ++  pkgconfig-depends: zlib+  -- hs-source-dirs:   default-language:    Haskell2010