me
/
guix
Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
guix/gnu
Maxim Cournoyer b7297d66c5
services: configuration: Add a define-maybe/no-serialization syntax.
Before this change, using define-maybe along define-configuration with the
no-serialization syntactic keyword would result in the following warning:

  warning: possibly unbound variable `VARIABLE-NAME'

This change introduces the define-maybe/no-serialization variant that does
away with defining a serialization helper procedure, which makes it possible
to avoid the above warning.

* gnu/services/configuration.scm (define-maybe/no-serialization): New syntax.
(define-maybe-helper): New procedure.
(define-maybe): Define syntax using the above procedure.
* tests/services/configuration.scm (tests): Fix module name.
(custom-number-serializer): Do not print to standard output.
(maybe-number?, serialize-maybe-number): New procedures defined via the
define-maybe macro.
(config-with-maybe-number): New configuration.
(serialize-number): New procedure.
("maybe value serialization"): New test.
(maybe-string?): New procedure defined via the define-maybe/no-serialization
macro.
(config-with-maybe-string/no-serialization): New configuration.
("maybe value without serialization no procedure bound"): New test.
2021-05-17 23:27:39 -04:00
..
bootloader
build file-systems: Rewrite comment. 2021-05-04 15:40:32 +02:00
installer
machine
packages gnu: Add python-tappy. 2021-05-17 22:55:33 -04:00
services services: configuration: Add a define-maybe/no-serialization syntax. 2021-05-17 23:27:39 -04:00
system vm: Remove unused imports. 2021-05-17 23:59:58 +02:00
tests gnu: Allow services to install kernel-loadable modules. 2021-05-11 16:13:48 +02:00
artwork.scm
bootloader.scm
ci.scm
image.scm
installer.scm
local.mk gnu: mercurial: Patch to make it read HGEXTENSIONPATH. 2021-05-16 23:28:11 +02:00
machine.scm
packages.scm
services.scm gnu: Allow services to install kernel-loadable modules. 2021-05-11 16:13:48 +02:00
system.scm Merge branch 'version-1.3.0' 2021-05-11 22:42:59 -04:00
tests.scm