streaming-utils: Experimental 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. They 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: > import Streaming > import Streaming.Prelude (with, each) > import qualified Streaming.Prelude as S > import Data.ByteString.Streaming.HTTP > import qualified Data.ByteString.Streaming.Char8 as Q > > 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 = with (each [1..]) $ \n -> Q.pack (each (show n ++ ". ")) > -- ["1. ", "2. " ..] 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 <https://groups.google.com/forum/#!forum/haskell-pipes pipes list>.

[ bsd3, data, library, pipes, streaming ] [ Propose Tags ]
Versions 0.1.0.0, 0.1.0.1, 0.1.1.0, 0.1.1.1, 0.1.2.0, 0.1.2.2, 0.1.3.0, 0.1.4.0, 0.1.4.1, 0.1.4.2, 0.1.4.3, 0.1.4.4, 0.1.4.5, 0.1.4.6, 0.1.4.7
Dependencies aeson (>0.8 && <0.11.3), attoparsec (>0.13.0.0 && <0.13.2.0), base (>=4.7 && <5.0), bytestring (>0.10.0 && <0.11.0), http-client (>=0.2 && <0.6), http-client-tls, json-stream (>0.4.0 && <0.4.2), mtl (==2.2.*), network, network-simple, pipes (>=4.0 && <4.3), resourcet (>1.0 && <1.2), streaming (>=0.1.4.0 && <0.1.4.8), streaming-bytestring (>=0.1.4.0 && <0.1.4.8), streaming-commons (>0.1.0 && <0.1.17), transformers (>=0.4 && <0.5.3) [details]
License BSD-3-Clause
Author michaelt
Maintainer what_is_it_to_do_anything@yahoo.com
Category Data, Pipes, Streaming
Home page https://github.com/michaelt/streaming-utils
Bug tracker https://github.com/michaelt/streaming-utils/issues
Source repo head: git clone https://github.com/michaelt/streaming-utils
Uploaded by MichaelThompson at Tue Jan 17 08:43:03 UTC 2017
Distributions NixOS:0.1.4.7
Downloads 2906 total (15 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees