bug-guix
[Top][All Lists]
Advanced

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

bug#56799: [PATCH v2] gexp: Handle *unspecified* as a gexp input.


From: Maxim Cournoyer
Subject: bug#56799: [PATCH v2] gexp: Handle *unspecified* as a gexp input.
Date: Wed, 27 Jul 2022 16:20:10 -0400

Fixes <https://issues.guix.gnu.org/56799>.

* guix/gexp.scm (gexp->sexp)[*unspecified*]: Quote value when encountering it.
---
 guix/gexp.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/guix/gexp.scm b/guix/gexp.scm
index ef92223048..e05aed6f32 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -1380,6 +1380,8 @@ (define* (reference->sexp ref #:optional native?)
                                 #:output output)))
         (($ <gexp-input> (? self-quoting? x))
          (return x))
+        (($ <gexp-input> (? unspecified? x))
+         (return (quote x)))
         (($ <gexp-input> x)
          (raise (condition (&gexp-input-error (input x)))))
         (x
-- 
2.36.1






reply via email to

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