Browse Source

repl, marionette: 'self-quoting?' matches keywords.

* guix/repl.scm (self-quoting?): Add 'keyword?' and 'array?'; remove
'vector?' and 'bytevector?'.
* gnu/tests.scm (marionette-shepherd-service) <start>: Likewise.
<modules>: Remove (rnrs bytevector).
gn-latest-20200428
Ludovic Courtès 2 years ago
parent
commit
7abd5997f4
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 7
      gnu/tests.scm
  2. 6
      guix/repl.scm

7
gnu/tests.scm

@ -87,8 +87,7 @@
(requirement `(udev ,@requirement))
(modules '((ice-9 match)
(srfi srfi-9 gnu)
(rnrs bytevectors)))
(srfi srfi-9 gnu)))
(start
(with-imported-modules imported-modules
#~(lambda ()
@ -98,8 +97,8 @@
((_ pred rest ...)
(or (pred x)
(one-of rest ...))))))
(one-of symbol? string? pair? null? vector?
bytevector? number? boolean?)))
(one-of symbol? string? keyword? pair? null? array?
number? boolean?)))
(match (primitive-fork)
(0

6
guix/repl.scm

@ -17,7 +17,6 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (guix repl)
#:use-module (rnrs bytevectors)
#:use-module (ice-9 match)
#:export (send-repl-response
machine-repl))
@ -37,9 +36,8 @@
((_ pred rest ...)
(or (pred x)
(one-of rest ...))))))
(one-of symbol? string? pair? null? vector?
bytevector? number? boolean?)))
(one-of symbol? string? keyword? pair? null? array?
number? boolean?)))
(define (send-repl-response exp output)
"Write the response corresponding to the evaluation of EXP to PORT, an

Loading…
Cancel
Save