tubes: Effectful, iteratee-inspired stream processing based on a free monad.

[ control, gpl, library, streaming ] [ Propose Tags ]

This package provides the Tube monad transformer, allowing any monad computation to become a stream processing pipeline. A computation of type Tube a b m r consumes values of type a and produces values of type b.

Tubes are coroutines which can suspend computation to yield an intermediate value or continue execution by requesting an upstream value.

Also provided are Pumps, the comonadic dual to Tubes. Examples are provided of how they can be used with Tubes but we have almost certainly only scratched the surface.

Examples and more information may be found at

I seem to have trouble uploading packages where the documentation can be built correctly on Hackage. If I have (once again) messed this up, you can find Haddock documentation at I apologize for any inconvenience!

This should compile on GHC 7.8, but the problem is that previous attempts at setting the versions properly rendered Hackage unable to generate documentation. Hopefully I have this fixed but any advice is welcome.

Versions [faq],,,,,,,,,,,,,
Dependencies base (>=4.8 && <5), comonad, free (>=4.12), mtl, transformers (>=0.3) [details]
License GPL-3.0-only
Copyright 2015
Author Gatlin C Johnson
Category Control, Streaming
Home page
Source repo head: git clone
Uploaded by gatlin at Wed Sep 30 15:10:49 UTC 2015
Distributions NixOS:
Downloads 5317 total (330 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees