Skip to content
Snippets Groups Projects
Unverified Commit 881c61d0 authored by Chris Marusich's avatar Chris Marusich
Browse files

doc: Improve <service-type> documentation.

* doc/guix.texi (Service Reference): Correct and clarify some statements
  regarding the "compose" and "extend" procedures of <service-type>.
parent 3cd4447f
No related branches found
No related tags found
No related merge requests found
......@@ -21090,16 +21090,16 @@ services.
 
Otherwise, it must be a one-argument procedure. The procedure is called
by @code{fold-services} and is passed a list of values collected from
extensions. It must return a value that is a valid parameter value for
the service instance.
extensions. It may return any single value.
 
@item @code{extend} (default: @code{#f})
If this is @code{#f}, services of this type cannot be extended.
 
Otherwise, it must be a two-argument procedure: @code{fold-services}
calls it, passing it the initial value of the service as the first argument
and the result of applying @code{compose} to the extension values as the
second argument.
calls it, passing it the initial value of the service as the first
argument and the result of applying @code{compose} to the extension
values as the second argument. It must return a value that is a valid
parameter value for the service instance.
@end table
 
@xref{Service Types and Services}, for examples.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment