monads: Allow n-ary '>>=' expressions.
authorLudovic Courtès <ludo@gnu.org>
Mon, 8 Jun 2015 20:49:50 +0000 (22:49 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 8 Jun 2015 21:00:49 +0000 (23:00 +0200)
commit751630c9c3f7f3e87dfccc5f5ba8cf61cdd6f8fd
tree2da2fcf7e6e300c98f2777e0bcb5670252ff4803
parentae9b96c7846cc7d4528da5c6d861d6440cf46e33
monads: Allow n-ary '>>=' expressions.

Suggested by Federico Beffa <beffa@fbengineering.ch>.

* guix/monads.scm (bind-syntax): New macro.
  (with-monad): Use it instead of 'identifier-syntax'.
* tests/monads.scm (">>= with more than two arguments"): New test.
* doc/guix.texi (The Store Monad): Explain that there can be several MPROC.
  Add an example.
doc/guix.texi
guix/monads.scm
tests/monads.scm