Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Compositional pipelines
Haskell

This branch is 141 commits ahead, 963 commits behind Gabriel439:master

Merge pull request #8 from danbst/master

Fix documentation typo
latest commit 98d080440b
@pcapriotti authored
Failed to load latest commit information.
Control Fix documentation typo
tests Fix PipeL implementation.
.travis.yml
CHANGELOG Update CHANGELOG.
LICENSE Update copyright statements.
README.md
Setup.hs Commit before first public release.
pipes-core.cabal Bump version to 0.2.0.

README.md

This library offers an abstraction similar in scope to iteratees/enumerators/enumeratees, but with different characteristics and naming conventions.

Continuous Integration status

Difference with traditional iteratees:

  • Simpler semantics: There is only one data type (Pipe), two primitives (await and yield), and only one way to compose Pipes (>+>). In fact, (>+>) is just convenient syntax for the composition operator in Category. Most pipes can be implemented just using the Monad instance and composition.

  • Different naming conventions: Enumeratees are called Pipes, Enumerators are Producers, and Iteratees are Consumers. Producers and Consumers are just type synonyms for Pipes with either the input or output end closed.

  • Pipes form a Category: that means that composition is associative, and that there is an identity Pipe.

  • "Vertical" concatenation works on every Pipe: (>>), concatenates Pipes. Since everything is a Pipe, you can use it to concatenate Producers, Consumers, and even intermediate Pipe stages. Vertical concatenation can be combined with composition to create elaborate combinators, without the need of executing pipes in "passes" or resuming partially executed pipes.

This library is based on the pipes package by Gabriel Gonzalez.

Something went wrong with that request. Please try again.