diff options
author | Ludovic Courtès <ludo@gnu.org> | 2021-05-20 15:40:55 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-07-11 00:49:14 +0200 |
commit | 8be1632199483bdbb77cc48d6f3196230dceed90 (patch) | |
tree | f530f12b4aa06cb7b9a9e72129b2eff5b7de02e4 /guix/lint.scm | |
parent | 2a3cd4ee3557fbbdca42b5ec2f3ec4546c270203 (diff) | |
download | guix-patches-8be1632199483bdbb77cc48d6f3196230dceed90.tar guix-patches-8be1632199483bdbb77cc48d6f3196230dceed90.tar.gz |
records: Support field sanitizers.
* guix/records.scm (make-syntactic-constructor): Add #:sanitizers.
[field-sanitizer]: New procedure.
[wrap-field-value]: Honor F's sanitizer.
(define-record-type*)[field-sanitizer]: New procedure.
Pass #:sanitizer to 'make-syntactic-constructor'.
* tests/records.scm ("define-record-type* & sanitize")
("define-record-type* & sanitize & thunked"): New tests.
Diffstat (limited to 'guix/lint.scm')
0 files changed, 0 insertions, 0 deletions