aboutsummaryrefslogtreecommitdiff
path: root/doc/guix.texi
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-08-24 14:40:38 +0200
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-08-24 22:34:45 -0400
commit1c803e63f9560b93afeec9f7342f4413ff3cec46 (patch)
tree0482d40b846cdd02303d2cb89b2f1ed5150ce0ae /doc/guix.texi
parent31339f5f5ffd80f3fca9dbe49990fa3be4234bb5 (diff)
downloadguix-1c803e63f9560b93afeec9f7342f4413ff3cec46.tar
guix-1c803e63f9560b93afeec9f7342f4413ff3cec46.tar.gz
services: configuration: Add a 'maybe-value-set?' procedure.
* gnu/services/configuration.scm (maybe-value-set?): New procedure. * doc/guix.texi (Complex Configurations): Document it. Remove comment showing usage of 'maybe-string' with a default value, which doesn't make sense. Co-authored-by: Attila Lendvai <attila@lendvai.name>
Diffstat (limited to 'doc/guix.texi')
-rw-r--r--doc/guix.texi7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 023b48ae35..c8f18a1482 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -39003,7 +39003,7 @@ to be a string, or left unspecified.
(name
;; If set to a string, the `serialize-string' procedure will be used
;; to serialize the string. Otherwise this field is not serialized.
- maybe-string ; equivalent to (maybe-string *unspecified*)
+ maybe-string
"The name of this module."))
@end lisp
@@ -39034,6 +39034,11 @@ whether its value is set or not.
@end lisp
@end deffn
+@deffn (Scheme Procedure) maybe-value-set? @var{value}
+Predicate to check whether a user explicitly specified the value of a
+maybe field.
+@end deffn
+
@deffn {Scheme Procedure} serialize-configuration @var{configuration} @
@var{fields}
Return a G-expression that contains the values corresponding to the