Subject: Re: [bug#40207] [PATCH 1/2] installer: tests: Use a filter to select desktop-environments.

From: Ludovic Courtès <[email-masked]>
Date: Tue, 24 Mar 2020 11:31:58 +0100

Hi Mathieu,

Mathieu Othacehe <[email-masked]> 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.

Ludo’.