From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WE9mMxRKw2ISbgAAbAwnHQ (envelope-from ) for ; Mon, 04 Jul 2022 22:14:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +IJgMxRKw2Ld9QAAauVa8A (envelope-from ) for ; Mon, 04 Jul 2022 22:14:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8597C32C4A for ; Mon, 4 Jul 2022 22:14:12 +0200 (CEST) Received: from localhost ([::1]:55792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8SSR-00044W-Pg for larch@yhetil.org; Mon, 04 Jul 2022 16:14:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8SSI-00044E-GI for bug-guix@gnu.org; Mon, 04 Jul 2022 16:14:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54827) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8SSI-0003Cw-4N for bug-guix@gnu.org; Mon, 04 Jul 2022 16:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o8SSH-0000Hc-WF for bug-guix@gnu.org; Mon, 04 Jul 2022 16:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 04 Jul 2022 20:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56114 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: zimoun Cc: Maxime Devos , 56114@debbugs.gnu.org Received: via spool by 56114-submit@debbugs.gnu.org id=B56114.16569656251054 (code B ref 56114); Mon, 04 Jul 2022 20:14:01 +0000 Received: (at 56114) by debbugs.gnu.org; 4 Jul 2022 20:13:45 +0000 Received: from localhost ([127.0.0.1]:48724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8SS1-0000Gv-F6 for submit@debbugs.gnu.org; Mon, 04 Jul 2022 16:13:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8SS0-0000Gb-Ci for 56114@debbugs.gnu.org; Mon, 04 Jul 2022 16:13:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41330) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8SRv-0003AG-3a; Mon, 04 Jul 2022 16:13:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=DKuyrwhEqYEMq1tElb5UTfwyclL0PW9iHlEJ1KrykH8=; b=pD7h2A1gWxol8rA0ww3b 8F8y9KIeu1daFLCE/o2rJSpci9oJ57oK4LmYMRS/CAuum+DhiyQOQ0dr1CViuDSZoJkyRrngM/SJT fsPmRDh1a5BanX30VInN27w3N+kmRXpju3Zvrz1UIWrqXhu/1M7Ru0imjmsHp8bi5pHAvtL2Joorq Juu0+pxzpNwsuhq5h0ciyNSAr5TwdNSUR4fJDyQ3yRGTVFS98CVWD3/nvfAv1Meu3KLko1egr+Zj9 qibUc2q1X3u2p9yNM+XkYYFuD/CAaSOiKLUyooAixGottwiniWt7mLOZKHh9PS7RZf1d0AGOlxtSk 62VkxrU7AxbXDA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:50258 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8SRu-0005BJ-Mp; Mon, 04 Jul 2022 16:13:38 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <1652a111d71c3e74c61904f89120ea45631c7013.camel@telenet.be> <87edz1zzrz.fsf@gnu.org> <87y1x8nasl.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 16 Messidor an 230 de la =?UTF-8?Q?R=C3=A9volution, ?= jour du Tabac X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 04 Jul 2022 22:13:36 +0200 In-Reply-To: <87y1x8nasl.fsf@gmail.com> (zimoun's message of "Mon, 04 Jul 2022 17:43:22 +0200") Message-ID: <8735fg8wlr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656965652; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DKuyrwhEqYEMq1tElb5UTfwyclL0PW9iHlEJ1KrykH8=; b=eeihH1vOeq3YBy1B/NM0onKpGYupk9LzI7WttruvCuFg8LikkVuXDsBFGjrGtUrJONW2z6 qGOLE9mOP5Qu3CokH7cjNeyLJxGlBgUzTL4LQNuAWVHHENL4JI/hE7CcOvAIAcd1jLmHpL LXts3pYiTMzeQMw5zwOoNtLo+ZiauVw+Rt4/Lo3MpTZ9Lg7vSyMiCHAfcEexhNTtBk8SLQ mwuEtH/yzuK1L4E+IAmltd1FE56kthud/FhA/Y/MioFvJVN5d5Gwl/A3NCYsspxMkODdL/ Z+2duyMysc1mO0yclgyqoEO6foLU8ZWrRGuaKYqsl0vh7O20t0AbJ/6KA+efhA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656965652; a=rsa-sha256; cv=none; b=k6VDmoK+RvxXnXkbSOIYhmpWeUBQ5iNTdCH39hVsJkfJ1KiH7ilavOtfHoP62qhM1DGokJ pwcLwuf1LfDEA0MzKNjHEIj0h5bvO+Ns/ndFkdXriDpFCYvcO7blchTMthBr/RTlwHPIlD cDdcDS34vYTwlNKddy/N9OmCGp3TJ9e7Xl1Bag4kRBpiwZe3cydhTkGEyHYoo61Sj14xvR rPthTRkrjOQ800bGRWWvRc9wjEVFjaAcyMXHMzIfsnlymXnbvlb643C3+lTcr8zgXC24nn eabMz0/J76a3JJmCiu1SWW4WcwunIKh314SunezxJiSIbMImVvTJJ1XtxK8Zeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=pD7h2A1g; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.95 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=pD7h2A1g; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8597C32C4A X-Spam-Score: -4.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: bmxQZiI7orp7 Hello! zimoun skribis: > However, note that, > > scheme@(guix-user)> ,build (plain-file "foo" "bar") > $1 =3D "/gnu/store/798sxvdgr0680czdggbls7rd3sfwk2yx-foo" > scheme@(guix-user)> ,lower (plain-file "foo" "bar") > $2 =3D "/gnu/store/798sxvdgr0680czdggbls7rd3sfwk2yx-foo" > > > which is confusing, especially when, > > scheme@(guix-user)> ,lower (mixed-text-file "foo" "bar") > $6 =3D # /gnu/store/raihpcxdz6wmdpyj67bwd4bjk02xq0x3-foo 7f6f9bc5cd20> > scheme@(guix-user)> ,build (mixed-text-file "foo" "bar") > $7 =3D "/gnu/store/raihpcxdz6wmdpyj67bwd4bjk02xq0x3-foo" Right, that=E2=80=99s because =E2=80=98plain-file=E2=80=99 lowers directly = to a store item, not to a derivation. I explicitly made =E2=80=9C,build=E2=80=9D hide that difference; I thought = one would just want =E2=80=9C,build=E2=80=9D to do the right thing and display the re= sulting store item regardless of that kind of detail. Conversely, =E2=80=9C,lower=E2=80=9D is for die-hard hackers and it doesn= =E2=80=99t hide any subtlety. >> +(define* (evaluate/print-with-store mvalue #:key build?) >> + "Run monadic value MVALUE in the store monad and print its value." > > I do not know if it makes sense to have a list of monadic values, > allowing something like: > > ,build hello coreutils I don=E2=80=99t think the REPL can support this syntax, but we could add su= pport for: ,build (list hello coreutils) Thanks for your feedback! Ludo=E2=80=99.