name: streaming-utils version: 0.1.4.2 synopsis: http, attoparsec, pipes and conduit utilities for the streaming libraries description: Experimental http-client, aeson, attoparsec and pipes utilities for use with the and 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 . license: BSD3 license-file: LICENSE author: michaelt maintainer: what_is_it_to_do_anything@yahoo.com -- copyright: category: Data build-type: Simple -- extra-source-files: cabal-version: >=1.10 stability: Experimental homepage: https://github.com/michaelt/streaming-utils bug-reports: https://github.com/michaelt/streaming-utils/issues category: Data, Pipes, Streaming source-repository head type: git location: https://github.com/michaelt/streaming-utils library exposed-modules: Data.Attoparsec.ByteString.Streaming, Data.ByteString.Streaming.HTTP, Data.ByteString.Streaming.Aeson, Streaming.Pipes -- other-modules: other-extensions: CPP, Trustworthy build-depends: base >=4.7 && <4.9, transformers >=0.4 && <0.5, mtl >=2.2 && <2.3, attoparsec >=0.13.0.1, streaming >= 0.1.4.0 && < 0.1.4.5, streaming-bytestring >= 0.1.4.0 && < 0.1.4.5, bytestring > 0.10.0 && < 0.11.0, pipes >= 4.0 && < 4.2, http-client >=0.2 && <0.5, http-client-tls <0.3, aeson > 0.8 && <0.9.1.0, json-stream == 0.4.0.*, resourcet > 1.0 && < 1.2 -- hs-source-dirs: default-language: Haskell2010