~ruther/guix-local

b307c06456eefa10ebe59216599f554dae641cd6 — Ludovic Courtès 11 years ago 21caa6d
monads: Add 'lift0'.

* guix/monads.scm (lift0): New variable.
1 files changed, 2 insertions(+), 1 deletions(-)

M guix/monads.scm
M guix/monads.scm => guix/monads.scm +2 -1
@@ 41,7 41,7 @@
            mbegin
            mwhen
            munless
            lift1 lift2 lift3 lift4 lift5 lift6 lift7 lift
            lift0 lift1 lift2 lift3 lift4 lift5 lift6 lift7 lift
            listm
            foldm
            mapm


@@ 222,6 222,7 @@ CONDITION is true, return *unspecified* in the current monad."
         (with-monad monad
           (return (proc args ...))))))))

(define-lift lift0 ())
(define-lift lift1 (a))
(define-lift lift2 (a b))
(define-lift lift3 (a b c))