records: match-record: Do not show internal form.
* guix/records.scm (lookup-field+wrapper): Attach source properties to the field syntax object instead.master
parent
4cd5293621
commit
f045c7ac80
|
@ -599,7 +599,8 @@ to thunked values. Raise a syntax violation when the field is not found."
|
||||||
((_ record field offset ())
|
((_ record field offset ())
|
||||||
(syntax-violation 'match-record
|
(syntax-violation 'match-record
|
||||||
"unknown record type field"
|
"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 ...))
|
((_ record field offset ((head normal) tail ...))
|
||||||
(free-identifier=? #'field #'head)
|
(free-identifier=? #'field #'head)
|
||||||
#'(values offset identity))
|
#'(values offset identity))
|
||||||
|
|
Reference in New Issue