diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-09-04 18:31:06 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-09-04 18:31:06 +0200 |
commit | dbbc248aeef1bc3b5d76268782acff43e9d71d57 (patch) | |
tree | d09e9e6e4e8138b6837cc024c69c599f58c38aa9 /guix | |
parent | 3b6eddb2b27beacf462e9c254ebc6d612dac0129 (diff) | |
download | gnu-guix-dbbc248aeef1bc3b5d76268782acff43e9d71d57.tar gnu-guix-dbbc248aeef1bc3b5d76268782acff43e9d71d57.tar.gz |
monads: Fix 'liftN' fallback case.
Reported by Andy Wingo <wingo@igalia.com>.
* guix/monads.scm (define-lift) <fallback case>: Add missing #'. Remove
extra formal parameter.
* tests/monads.scm ("lift"): Add test with 'lift1' as a procedure.
Diffstat (limited to 'guix')
-rw-r--r-- | guix/monads.scm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/guix/monads.scm b/guix/monads.scm index 61cd533bf4..0b0ad239de 100644 --- a/guix/monads.scm +++ b/guix/monads.scm @@ -239,10 +239,10 @@ CONDITION is true, return *unspecified* in the current monad." (identifier? #'id) ;; Slow path: Return a closure-returning procedure (we don't ;; guarantee (eq? LIFTN LIFTN), but that's fine.) - (lambda (liftn proc monad) - (lambda (args ...) - (with-monad monad - (return (proc args ...)))))))))))) + #'(lambda (proc monad) + (lambda (args ...) + (with-monad monad + (return (proc args ...)))))))))))) (define-lift lift0 ()) (define-lift lift1 (a)) |