streaming: A general free monad transformer optimized for streaming applications.

[ bsd3, data, library, pipes, streaming ] [ Propose Tags ]

Stream can be used wherever FreeT is used. The compiler is better able to optimize operations written in terms of Stream.

An associated prelude of functions, closely following Pipes.Prelude is focused on on employment with a base functor like ((,) a) (here called Of a) which generates effectful sequences or producers - Pipes.Producer, Conduit.Source, IOStreams.InputStream, IOStreams.Generator and the like.

Interoperation with pipes is accomplished with this isomorphism:

Pipes.unfoldr :: Stream (Of a) m r -> Producer a m r
Stream.unfoldr    :: Producer a m r -> Stream (Of a) m r

Exit to conduit and iostreams is thus:

Conduit.unfoldM Streaming.uncons   :: Stream (Of a) m ()  -> Source m a
IOStreams.unfoldM Streaming.uncons :: Stream (Of a) IO () -> InputStream a
Versions [faq],,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Dependencies base (==4.8.*), ghc-prim, mmorph (>=1.0 && <1.2), mtl (>=2.1 && <2.3), transformers (>=0.3 && <0.5) [details]
License BSD-3-Clause
Author michaelt
Revised Revision 1 made by HerbertValerioRiedel at Wed Aug 29 08:15:08 UTC 2018
Category Data, Pipes
Home page
Bug tracker
Source repo head: git clone
Uploaded by MichaelThompson at Sun Aug 16 01:44:13 UTC 2015
Distributions LTSHaskell:, NixOS:, Stackage:
Downloads 20909 total (1204 in the last 30 days)
Rating 2.5 (votes: 6) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]




Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees