From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id qN+/MGOE7WWVDgAA62LTzQ:P1 (envelope-from ) for ; Sun, 10 Mar 2024 10:58:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id qN+/MGOE7WWVDgAA62LTzQ (envelope-from ) for ; Sun, 10 Mar 2024 10:58:59 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=jpoiret.xyz header.s=dkim header.b=ozduu7oh; dmarc=pass (policy=reject) header.from=jpoiret.xyz; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710064739; a=rsa-sha256; cv=none; b=olO0Cb5Nl9V0v6UvYkGM2Fg8JAVFUcBG3ZbRlS0GbaPifSZOi38XAqPONnTNllrJo7YY5e RmVHffdDQcHEeI1t1l9aN6dPV6SJIxCK5fxU66O/dJqrmTzo0U9aBdfI+229lVcnD6iuZa v9mfgzqXxl+Ie8aNFiyH/lmK61fM1DPKPmZCamfEPYLE45BTD7DIHFKBrAqPXMg12IQqjQ zrAoqZOUUZKgKNKeuGXMCdIN0gEZMgFH2Hjj/V5i9+WOUvwN7brNmX6Jb/UpHZSBcfTGbg vXCqZxcKbR4+y2TZKzEuHJ87KUGEjIIW08Bk9sypKt3gcPwN/oluQTn8bekADQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=jpoiret.xyz header.s=dkim header.b=ozduu7oh; dmarc=pass (policy=reject) header.from=jpoiret.xyz; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710064739; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aMWGJU9D/xISCojBM1sbNopVXZIreuEVpwNQeKKC/FI=; b=PfHrPw49G3dEENG97fW6pbTXcpT1r5UX34Ja3FB4TkTujDtEw60Jgl3wOmjpgrAv5QeBBl fo65e973ftbnAi+3j2RUGzXQF2P6WkSgV6GS97MJTpoLhzCm6w8DLDl9e/H7gdmt1Z4XzE F3lKilGfXDtKXSZFayERubp1FgT2+WcFxgSYrOt213ipa2T8Gf43nQA3uWxqo6bYcUzc4k DyNLoWZFp+g81kppj7N0m68rxav98uDuq7sPTa622AmHe/WIENF4xBYqdnaZV1xZVD6LcL jWud2rMszR6BEM5xOAdw4BFSMfd9UQPPTYRUZm7+OknrwF1MKcW8+SxT5qVuuA== 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 62558762B1 for ; Sun, 10 Mar 2024 10:58:59 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjFws-0003Et-Q0; Sun, 10 Mar 2024 05:58:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjFwr-0003Ek-AS for guix-devel@gnu.org; Sun, 10 Mar 2024 05:58:29 -0400 Received: from jpoiret.xyz ([206.189.101.64]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjFwp-0003zQ-Nf; Sun, 10 Mar 2024 05:58:29 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 7725D185453; Sun, 10 Mar 2024 09:58:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1710064702; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aMWGJU9D/xISCojBM1sbNopVXZIreuEVpwNQeKKC/FI=; b=ozduu7ohGuWj61NFPBavvvZ2P9NC0Nrlv/a6dNlar8/3c/jcOayA5AuNCFowS3IQX38ozb A2LM2HTPyC3KmrljVdNd/7407d1Uj/KAamkbklUF+xSJvoi8Wkx0eLHpjxjKjMpye3EpDv UJt57DG1FGKmLcyH1Q0Fer+PQMylXTl4XGTOuPU0ncGRQzdKPcXsUpoexWucBNLDmrWNIP +d7FCe1t0+X4S1wuufMUAJuw0xqNO14knPKTL3V/aMN5VgWEOzUm0/gN2w9/cXOCK6Ql5L ch11UAmrbmqvuFfVe/O+67d7zC9VLlrBUbDAbS56hYqPamic9hgKI/2CZsuZMg== From: Josselin Poiret To: Hartmut Goebel , Ludovic =?utf-8?Q?Court?= =?utf-8?Q?=C3=A8s?= Cc: guix-devel Subject: Re: G-exps: thunk instead of top-level references? In-Reply-To: References: Date: Sun, 10 Mar 2024 10:58:19 +0100 Message-ID: <87jzmammro.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spamd-Bar: + Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -10.44 X-Spam-Score: -10.44 X-Migadu-Queue-Id: 62558762B1 X-TUID: sZ7SjWW0Suxz --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Hartmut, Hartmut Goebel writes: > Hi Ludio, > > I'd like to get some advice: > > In commit 84c3aafb5a18ad278bbb36df7b70849fe05789c8 "trytond: Avoid top-le= vel references to other modules" > your turned a top-level variable which defines into a thunk: > > > > -(define %standard-trytond-native-inputs > +(define (%standard-trytond-native-inputs) > `(("python-dateutil" ,python-dateutil) > > and the users: > > (native-inputs > - `(,@%standard-trytond-native-inputs > + `(,@(%standard-trytond-native-inputs) > ("trytond-purchase" ,trytond-purchase))) > > I'm about to change the uses into G-exprs (see below) and wonder whether = "%standard-trytond-native-inputs" > should still be a thunk or can be turned pack into a top-level variable. > > -(define (%standard-trytond-native-inputs)=20 > - `(("python-dateutil" ,python-dateutil)=20 > +(define %standard-trytond-native-inputs=20 > + (list python-dateutil > > and uses > > - (native-inputs (%standard-trytond-native-inputs)) > + (native-inputs > + (cons* trytond-account-payment-clearing > + %standard-trytond-native-inputs)) >=20=20=20 Yes it still needs to be a thunk for the same reason: no top-level references to packages in other modules. By the way, (list ...) is not a G-exp, it's rather the new input style. Best, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCAAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmXthDsQHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5FhcaipGrC/9HeDg+KZOll0UPqdbRM8Pv4B3ciTW3HrJF GwzZxyzVtKUeB6QBSPS6a4uP/dz4iAK3WhkVtrgFrmF436PAJ6PfVtWbgngHRw1F hCq0dmyHEunR1IsyhfwJUrmDvR6Ax/+TwlyoCYGzHWnUzrWx82zF+GobWsjDMGZ+ tZivGlzju/sZTyVEezPrGs0+gxkD+CWXPAuaoZZxE+E7Nj1jH9Lwz6/sPH/KTrbb 3eGhIAyiTXudSO/iGtyAK3UOvwnIlA3qBa2C/H451Gmn+PM5AlYeldxDdEbv/9TU Egs8pieqTZbSPcNYDYeBr5eb57CosmhX0RHV/FDh7FqCtOvZvcN3gqONQMcbWXGa 2Fi3Qb1PuZHnZ1fzZe1hC1oMwHh88H/f4TDym7hfVYGTBREsCPh+JiOtn6hRbUeg SFmNjX3As5CUpW5L7Thta6Eq8H397H4MaW/ttUvujQoMSB4jSCmVSFNGsC1co38E hwrSgkmKHei21KKlq5+Mj4LjsjK9KI8= =APJT -----END PGP SIGNATURE----- --=-=-=--