[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/26: records: match-record: Do not show internal form.
From: |
guix-commits |
Subject: |
10/26: records: match-record: Do not show internal form. |
Date: |
Sun, 4 Jun 2023 05:38:32 -0400 (EDT) |
jpoiret pushed a commit to branch master
in repository guix.
commit f045c7ac80d36777f885e8ecab7affcb2683eb36
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Sun Jun 4 09:47:36 2023 +0200
records: match-record: Do not show internal form.
* guix/records.scm (lookup-field+wrapper): Attach source properties to the
field syntax object instead.
---
guix/records.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/guix/records.scm b/guix/records.scm
index 2a88cb4b3c..6c9f29eb3e 100644
--- a/guix/records.scm
+++ b/guix/records.scm
@@ -599,7 +599,8 @@ to thunked values. Raise a syntax violation when the field
is not found."
((_ 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))
- 08/26: dir-locals: Fix MATCH-RECORD indentation., (continued)
- 08/26: dir-locals: Fix MATCH-RECORD indentation., guix-commits, 2023/06/04
- 09/26: records: Add MATCH-RECORD-LAMBDA., guix-commits, 2023/06/04
- 20/26: build-system: New agda-build-system., guix-commits, 2023/06/04
- 11/26: tests: records: Add test for ellipsis in body., guix-commits, 2023/06/04
- 12/26: gnu: Add ghc-peano., guix-commits, 2023/06/04
- 26/26: channels: Raise an error if dependency's introduction is malformed, guix-commits, 2023/06/04
- 04/26: gnu: proot: Update to 5.4.0 and fix clone3 behavior., guix-commits, 2023/06/04
- 02/26: gnu: heimdal: Run autoreconf., guix-commits, 2023/06/04
- 03/26: gnu: heimdal: Drop obsolete and insecure user tools., guix-commits, 2023/06/04
- 06/26: records: match-record: Raise a syntax error if TYPE is nonexistent., guix-commits, 2023/06/04
- 10/26: records: match-record: Do not show internal form.,
guix-commits <=
- 14/26: gnu: agda: Update to 2.6.3 and switch to git-fetch., guix-commits, 2023/06/04
- 16/26: gnu: emacs-agda2-mode: No longer inherit from agda., guix-commits, 2023/06/04
- 17/26: gnu: emacs-agda2-mode: Switch to G-Exps., guix-commits, 2023/06/04
- 18/26: gnu: agda: Add AGDA_LIBDIRS search-path., guix-commits, 2023/06/04
- 19/26: build-system/haskell: Export default-haskell., guix-commits, 2023/06/04
- 24/26: gnu: Add agda-1lab., guix-commits, 2023/06/04
- 22/26: gnu: Add agda-categories., guix-commits, 2023/06/04
- 25/26: gnu: agda-ial: Update to ded30c410d5d40142249686572aa1acd1b2f8cc7., guix-commits, 2023/06/04
- 15/26: gnu: agda: Build info manual., guix-commits, 2023/06/04
- 21/26: gnu: Add agda-stdlib., guix-commits, 2023/06/04