mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
records: match-record: Do not show internal form.
* guix/records.scm (lookup-field+wrapper): Attach source properties to the field syntax object instead.
This commit is contained in:
parent
4cd5293621
commit
f045c7ac80
1 changed files with 2 additions and 1 deletions
|
@ -599,7 +599,8 @@ (define-syntax lookup-field+wrapper
|
|||
((_ record field offset ())
|
||||
(syntax-violation 'match-record
|
||||
"unknown record type field"
|
||||
s #'field))
|
||||
;; Attach the local source data to the field.
|
||||
(datum->syntax #f (syntax->datum #'field) #:source s)))
|
||||
((_ record field offset ((head normal) tail ...))
|
||||
(free-identifier=? #'field #'head)
|
||||
#'(values offset identity))
|
||||
|
|
Loading…
Reference in a new issue