help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Failure to ,expand use-package-module


From: Ludovic Courtès
Subject: Re: Failure to ,expand use-package-module
Date: Thu, 16 Nov 2017 17:07:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Heya,

Chris Marusich <address@hidden> skribis:

> At the Guile REPL, why does macro expansion of a use-package-modules
> invocation fail when the package in question doesn't exist, but it
> succeeds when the package exists?

That’s because of the ‘eval-when’ form there, which forces module
resolution to happen *also* at macro-expansion time.

Notice that the same happens with ‘use-modules’, for the same reason:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> ,expand (use-modules (foobar))
While executing meta-command:
ERROR: no code for module (foobar)
--8<---------------cut here---------------end--------------->8---

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]