[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#40207] [PATCH 1/2] installer: tests: Use a filter to select desktop

From: Ludovic Courtès
Subject: [bug#40207] [PATCH 1/2] installer: tests: Use a filter to select desktop-environments.
Date: Tue, 24 Mar 2020 11:31:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hi Mathieu,

Mathieu Othacehe <address@hidden> skribis:

> * gnu/installer/tests.scm (choose-services): Turn desktop-environments list
> into a choose-desktop-environment procedure. This way, it is easier to select
> all desktop-environments or none, in the same way as choose-network-service?
> and choose-network-management-tool? arguments.


> +     (let ((services* (filter choose-desktop-environment? services)))
> +       (set! desktop-environments services*)
> +       services*))

Maybe rename ‘services*’ to ‘desktops’?

‘set!’ hurts my eyes :-) but let’s get over it.  Eventually we can
change convert to run expressions in ‘%state-monad’ or something.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]