guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: gexp: Slightly simplify 'lower-inputs'.


From: Ludovic Courtès
Subject: 03/03: gexp: Slightly simplify 'lower-inputs'.
Date: Sun, 29 Mar 2015 20:23:40 +0000

civodul pushed a commit to branch master
in repository guix.

commit 2242ff45fa25656a0b4420fc901e22058513e338
Author: Ludovic Courtès <address@hidden>
Date:   Sat Mar 28 18:24:03 2015 +0100

    gexp: Slightly simplify 'lower-inputs'.
    
    * guix/gexp.scm (lower-inputs): Simplify first case by removing the
      'input' binding.
---
 guix/gexp.scm |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/guix/gexp.scm b/guix/gexp.scm
index 2492974..de8b7bb 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -204,12 +204,12 @@ the cross-compilation target triplet."
   (with-monad %store-monad
     (sequence %store-monad
               (map (match-lambda
-                    ((and ((? struct? thing) sub-drv ...) input)
-                     (mlet* %store-monad ((lower -> (lookup-compiler thing))
-                                          (drv (lower thing system target)))
-                       (return `(,drv ,@sub-drv))))
-                    (input
-                     (return input)))
+                     (((? struct? thing) sub-drv ...)
+                      (mlet* %store-monad ((lower -> (lookup-compiler thing))
+                                           (drv (lower thing system target)))
+                        (return `(,drv ,@sub-drv))))
+                     (input
+                      (return input)))
                    inputs))))
 
 (define* (lower-reference-graphs graphs #:key system target)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]