unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: Lukasz Olszewski <dev@lukaszolszewski.info>, 57801@debbugs.gnu.org
Subject: bug#57801: 'inferior-with-channels' is eager, making it hard to use in channels
Date: Thu, 15 Sep 2022 17:46:15 +0200	[thread overview]
Message-ID: <83ec830e-44a8-4fd3-8be1-08d72cc266b3@telenet.be> (raw)
In-Reply-To: <CACwB4R4DBX_Z7HZPztFAWjEkiaZiN6LnVi7hRv0EmeSDpqMY0A@mail.gmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 566 bytes --]



On 14-09-2022 19:18, Lukasz Olszewski wrote:
> Additionally this fails even when used like this:
> 
> (define inferior
>    (mlambda ()
>      (inferior-for-channels channels)))

This makes it lazy (not eager).

> (lookup-inferior-packages (inferior) "somepackage")

You are running (inferior) directly after defining the lazy thing, 
making it effectively _eager_ (not lazy) again.

Instead of doing this on the top-level, move the 
lookup-inferior-packages to inside the 'inputs' or 'native-inputs', to 
_keep_ it lazy.

Greetings,
Maxime.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

      reply	other threads:[~2022-09-15 15:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-14 12:28 bug#57801: 'inferior-with-channels' is eager, making it hard to use in channels Maxime Devos
2022-09-14 17:18 ` Lukasz Olszewski
2022-09-15 15:46   ` Maxime Devos [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83ec830e-44a8-4fd3-8be1-08d72cc266b3@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=57801@debbugs.gnu.org \
    --cc=dev@lukaszolszewski.info \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).