summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorArun Isaac2023-03-09 23:42:31 +0000
committerArun Isaac2023-03-09 23:42:31 +0000
commit172698ec2974e65d59732875f04c90cb821018ee (patch)
tree1ea5b71bd2742029407b83e95b2562f91861d9fc /doc
parent5ba25dd428b82047d2f91e71268afe0cc5444096 (diff)
downloadguix-forge-172698ec2974e65d59732875f04c90cb821018ee.tar.gz
guix-forge-172698ec2974e65d59732875f04c90cb821018ee.tar.lz
guix-forge-172698ec2974e65d59732875f04c90cb821018ee.zip
doc: Explain with-imported-modules and use-modules.
* doc/forge.skb (Tutorial): Explain why both with-imported-modules and use-modules are necessary.
Diffstat (limited to 'doc')
-rw-r--r--doc/forge.skb5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/forge.skb b/doc/forge.skb
index 65bc479..827003e 100644
--- a/doc/forge.skb
+++ b/doc/forge.skb
@@ -115,7 +115,10 @@ not a mistake. G-expressions are serialized into Guile scripts. ,(code
utils)]) is available and is in the ,(ref :url
"https://www.gnu.org/software/guile/manual/html_node/Load-Paths.html"
:text "load path"). ,(code [use-modules]) actually imports ,(code
-[(guix build utils)]) when the script runs.])
+[(guix build utils)]) when the script runs. ,(code
+[with-imported-modules]) is like installing a library in your system,
+and ,(code [use-modules]) is like actually importing that library in a
+script. Both are necessary.])
(prog (source :language scheme
:file "doc/snippets/tutorial.scm"
:start 11 :stop 22)