The machines package

[Tags:benchmark, bsd3, library, test]

Networked stream transducers

Rúnar Bjarnason's talk on machines can be downloaded from:

[Skip to Readme]


Versions 0.1, 0.1.1, 0.1.2, 0.2.1,,,, 0.2.2, 0.2.3,, 0.2.4, 0.2.5, 0.4,, 0.4.1, 0.5.1, 0.6, 0.6.1
Change log CHANGELOG.markdown
Dependencies base (>=4.5 && <5), comonad (>=3), containers (>=0.3 && <0.6), free (>=3.1.1), mtl (>=2 && <2.2), pointed (>=3), profunctors (>=3), semigroups (>=0.8.3), transformers (==0.3.*) [details]
License BSD3
Copyright Copyright (C) 2012 Edward A. Kmett
Author Edward A. Kmett, Rúnar Bjarnason
Maintainer Edward A. Kmett <>
Category Control, Enumerator
Home page
Bug tracker
Source repository head: git clone git://
Uploaded Sun Jan 27 06:33:47 UTC 2013 by EdwardKmett
Updated Thu May 21 13:33:22 UTC 2015 by AdamBergmark to revision 1
Distributions LTSHaskell:0.6.1, NixOS:0.6.1, Stackage:0.6.1, Tumbleweed:0.6.1
Downloads 5928 total (110 in the last 30 days)
4 []
Status Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for machines

Readme for machines-


Build Status

Ceci n'est pas une pipe

Machines are demand driven input sources like pipes or conduits, but can support multiple inputs.

You design a Machine by writing a Plan. You then construct the machine.

Simple machines that take one input are called a Process and processes form a Category. More generally you can attach a Process to the output of any type of Machine, yielding a new Machine.

More complicated machines provide other ways of connecting to them.

Typically the use of machines proceeds by using simple plans into machine Tees and Wyes, capping many of the inputs to those with possibly monadic sources, feeding the rest input (possibly repeatedly) and calling run or runT to get the answers out.

There is a lot of flexibility when building a machine in choosing between empowering the machine to run its own monadic effects or delegating that responsibility to a custom driver.

A port of this design to scala is available from runarorama/machines

Runar's slides are also available from

Contact Information

Contributions and bug reports are welcome!

Please feel free to contact me through github or on the #haskell IRC channel on

-Edward Kmett