From 172698ec2974e65d59732875f04c90cb821018ee Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 9 Mar 2023 23:42:31 +0000 Subject: doc: Explain with-imported-modules and use-modules. * doc/forge.skb (Tutorial): Explain why both with-imported-modules and use-modules are necessary. --- doc/forge.skb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc') 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) -- cgit v1.2.3