GNU bug report logs -
#59747
[PATCH] services: configuration: rework alist? procedure
Previous Next
Reported by: mirai <at> makinata.eu
Date: Thu, 1 Dec 2022 18:11:02 UTC
Severity: normal
Tags: patch
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59747 in the body.
You can then email your comments to 59747 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#59747
; Package
guix-patches
.
(Thu, 01 Dec 2022 18:11:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
mirai <at> makinata.eu
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 01 Dec 2022 18:11:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Bruno Victal <mirai <at> makinata.eu>
* gnu/services/configuration.scm: rework alist? procedure
---
gnu/services/configuration.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/services/configuration.scm b/gnu/services/configuration.scm
index dacfc52ba9..5bbb032c66 100644
--- a/gnu/services/configuration.scm
+++ b/gnu/services/configuration.scm
@@ -436,7 +436,11 @@ (define (list-of pred?)
(define list-of-strings?
(list-of string?))
-(define alist? list?)
+(define alist?
+ (match-lambda
+ (() #t)
+ ((and (= car head) (= cdr tail)) (and (pair? head) (alist? tail)))
+ (_ #f)))
(define serialize-file-like empty-serializer)
base-commit: 748ec628826cea3faa3679074d87fae9bc810080
--
2.38.1
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Thu, 08 Dec 2022 12:00:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
mirai <at> makinata.eu
:
bug acknowledged by developer.
(Thu, 08 Dec 2022 12:00:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 59747-done <at> debbugs.gnu.org (full text, mbox):
mirai <at> makinata.eu skribis:
> From: Bruno Victal <mirai <at> makinata.eu>
>
> * gnu/services/configuration.scm: rework alist? procedure
I simplified it a bit and applied.
Note that there are two other ‘*-alist?’ procedures…
But really, it’s the kind of predicate that shouldn’t be used because
there’s no disjoint alist data type in the first place. It may be a
sign that we should use records instead in those places.
Thanks,
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59747
; Package
guix-patches
.
(Thu, 08 Dec 2022 12:08:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 59747 <at> debbugs.gnu.org (full text, mbox):
From: Bruno Victal <mirai <at> makinata.eu>
* gnu/services/configuration.scm: rework alist? procedure
---
gnu/services/configuration.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/services/configuration.scm b/gnu/services/configuration.scm
index 2b3bd4c1f4..e0a5bd6728 100644
--- a/gnu/services/configuration.scm
+++ b/gnu/services/configuration.scm
@@ -436,7 +436,8 @@ (define (list-of pred?)
(define list-of-strings?
(list-of string?))
-(define alist? list?)
+(define alist?
+ (list-of pair?))
(define serialize-file-like empty-serializer)
base-commit: fc774ece918d765f871d2fd079e622188e23f2da
--
2.38.1
Did not alter fixed versions and reopened.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 10 Dec 2022 13:42:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59747
; Package
guix-patches
.
(Wed, 25 Jan 2023 16:39:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 59747 <at> debbugs.gnu.org (full text, mbox):
* gnu/services/configuration.scm (alist?): simplify procedure.
---
gnu/services/configuration.scm | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/gnu/services/configuration.scm b/gnu/services/configuration.scm
index 6b0291dc00..d4d9c3b1a6 100644
--- a/gnu/services/configuration.scm
+++ b/gnu/services/configuration.scm
@@ -437,10 +437,7 @@ (define list-of-strings?
(list-of string?))
(define alist?
- (match-lambda
- (() #t)
- ((head . tail) (and (pair? head) (alist? tail)))
- (_ #f)))
+ (list-of pair?))
(define serialize-file-like empty-serializer)
base-commit: 0d713e0140f4c4a80de6cbfc58fae17cb69beb98
--
2.38.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59747
; Package
guix-patches
.
(Wed, 25 Jan 2023 16:39:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 59747 <at> debbugs.gnu.org (full text, mbox):
* gnu/services/configuration.scm (alist?): simplify procedure.
---
Last patch was sent without prefix.
gnu/services/configuration.scm | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/gnu/services/configuration.scm b/gnu/services/configuration.scm
index 6b0291dc00..d4d9c3b1a6 100644
--- a/gnu/services/configuration.scm
+++ b/gnu/services/configuration.scm
@@ -437,10 +437,7 @@ (define list-of-strings?
(list-of string?))
(define alist?
- (match-lambda
- (() #t)
- ((head . tail) (and (pair? head) (alist? tail)))
- (_ #f)))
+ (list-of pair?))
(define serialize-file-like empty-serializer)
base-commit: 0d713e0140f4c4a80de6cbfc58fae17cb69beb98
--
2.38.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59747
; Package
guix-patches
.
(Sat, 18 Feb 2023 02:40:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 59747 <at> debbugs.gnu.org (full text, mbox):
bump
Reply sent
to
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
:
You have taken responsibility.
(Tue, 21 Mar 2023 13:53:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
mirai <at> makinata.eu
:
bug acknowledged by developer.
(Tue, 21 Mar 2023 13:53:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 59747-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Bruno Victal <mirai <at> makinata.eu> writes:
> * gnu/services/configuration.scm (alist?): simplify procedure.
> ---
>
> Last patch was sent without prefix.
>
> gnu/services/configuration.scm | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/gnu/services/configuration.scm b/gnu/services/configuration.scm
> index 6b0291dc00..d4d9c3b1a6 100644
> --- a/gnu/services/configuration.scm
> +++ b/gnu/services/configuration.scm
> @@ -437,10 +437,7 @@ (define list-of-strings?
> (list-of string?))
>
> (define alist?
> - (match-lambda
> - (() #t)
> - ((head . tail) (and (pair? head) (alist? tail)))
> - (_ #f)))
> + (list-of pair?))
Applied, thanks!
--
Thanks,
Maxim
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 19 Apr 2023 11:24:13 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 24 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.