GNU bug report logs - #75528
[PATCH 0/2] Add apcupsd

Previous Next

Package: guix-patches;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Sun, 12 Jan 2025 23:04:01 UTC

Severity: normal

Tags: patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Tomas Volf <~@wolfsden.cz>
Cc: 75528 <at> debbugs.gnu.org, Ludovic Courtès <ludo <at> gnu.org>
Subject: [bug#75528] [PATCH v3] services: Add power.
Date: Fri, 28 Feb 2025 11:11:56 +0900
Hi Tomas,

I was about to merge this, but I have one last (I promise!) question, see
below.

Tomas Volf <~@wolfsden.cz> writes:

[...]

> +(define apcupsd-service-type
> +  (service-type
> +   (name 'apcupsd)
> +   (description "Configure and optionally start the apcupsd.")
> +   (extensions (list (service-extension activation-service-type
> +                                        apcupsd-activation)
> +                     (service-extension shepherd-root-service-type
> +                                        apcupsd-shepherd-services)
> +                     (service-extension pam-root-service-type
> +                                        apcupsd-pam-extensions)))
> +   (compose identity)
> +   (extend (lambda (cfg lst)
> +             (fold (cut <> <>) cfg lst)))

What does the above extend does?  I find the (cut <> <>) particularly
cryptic, as it's typically used to specialize procedures, which there
are none above.

-- 
Thanks,
Maxim




This bug report was last modified 81 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.