gexp: Allow character literals in GEXP->SEXP.

Fixes <https://bugs.gnu.org/38628>.

* tests/gexp.scm ("lower-gexp, character literal"): New test.
* guix/gexp.scm (gexp->sexp)[self-quoting?]: Add CHAR? to the tested types.
* guix/repl.scm (self-quoting?): Likewise.
* gnu/tests.scm (marionette-shepherd-service)[self-quoting?]: Likewise.
This commit is contained in:
Marius Bakke 2019-12-15 21:27:31 +01:00
parent fe3110ac58
commit ab7010af1f
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA
4 changed files with 9 additions and 3 deletions

View file

@ -98,7 +98,7 @@
(or (pred x)
(one-of rest ...))))))
(one-of symbol? string? keyword? pair? null? array?
number? boolean?)))
number? boolean? char?)))
(match (primitive-fork)
(0