services: prosody: Make sure 'id' is available at expansion time.

* gnu/services/messaging.scm (id): Use 'define-syntax-rule' instead of
'define' to make sure 'id' is available at expansion time.
This commit is contained in:
Ludovic Courtès 2017-03-08 13:23:57 +01:00
parent beb1e8067d
commit 5d1ee4d7bc
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -49,8 +49,9 @@ (define-module (gnu services messaging)
;;;
;;; Code:
(define (id ctx . parts)
(datum->syntax ctx (apply symbol-append (map syntax->datum parts))))
(define-syntax-rule (id ctx parts ...)
"Assemble PARTS into a raw (unhygienic) identifier."
(datum->syntax ctx (symbol-append (syntax->datum parts) ...)))
(define-syntax define-maybe
(lambda (x)