From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kNOOCLQpHGIwVwAAgWs5BA (envelope-from ) for ; Mon, 28 Feb 2022 02:47:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SOYlAbQpHGInOgAAG6o9tA (envelope-from ) for ; Mon, 28 Feb 2022 02:47:32 +0100 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 A27F712018 for ; Mon, 28 Feb 2022 02:47:31 +0100 (CET) Received: from localhost ([::1]:36140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOV8M-0005BV-Dd for larch@yhetil.org; Sun, 27 Feb 2022 20:47:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOV8A-0005BC-Mw for help-guix@gnu.org; Sun, 27 Feb 2022 20:47:18 -0500 Received: from [2607:f8b0:4864:20::72b] (port=43784 helo=mail-qk1-x72b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOV89-0001l8-8V for help-guix@gnu.org; Sun, 27 Feb 2022 20:47:18 -0500 Received: by mail-qk1-x72b.google.com with SMTP id z66so9265184qke.10 for ; Sun, 27 Feb 2022 17:47:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=f05/C1SjOG3RWxl20ugoFekuWixE7B1F7fY5xDV4eX4=; b=Feql6hX9/Lv/+wuMFfxr4K875gzYs//gssTtGeWeHVQRQPoVnIcbYVLEKmzLFOiCxE 9r5w0RA8z7fqU1ZFQmrqaVhTvL+8Qps5h9P9HnYcxL93B7gWF2NPXjqeGQFoLM5ozyvP 5W/H8dwaPd6tW5pvUK31YYc01gTRsABP943oFDkPiK6VnTmEgctz32kkOpyKQn0cnJ/C LUYxUNVJkUXMpgnNHD6fl0J2FP6g9kJZZSME/EA/UE95s26HiqTHas6vs/no8/l1808x Rm8F/0/J4YRuxbJ1b/UnqVtWvIbzwjF7TQCn6JylLCVUvFrnnZ01iOJGKlUrDqQNbtgJ f8Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=f05/C1SjOG3RWxl20ugoFekuWixE7B1F7fY5xDV4eX4=; b=zZ6PM/4Yu1VdK2MEZjocCpFghDXTg0vsSMu5opVKBgU2Qet6gG2bComG26C1ICPmfh 0c1rVn1v6HIK+L+HhyoV0wwVjzQCHmjQA7B1xgzUoLAEzel+RpsNvNl5gXXLLq9kI503 d3jO+7B3RypNwXiisbBy0UvHhVI10u1Sim4i0qYhj/trYZecWjRORsifp+wGIu0FV6Sh MTKoHeMtWax3h+fnytoq1dZswugURfBpIEsFX+h41RGLpU7z97AuM857MUbxB/++QFgK MK16tdkVXvWhfrKVo8zve3jlAF0q/mKBuenALDjsvsP3kHpP33B5YuuYtU68GTwd971b O6ug== X-Gm-Message-State: AOAM530qXl9g1bYk1ECLvATB40XlJb6+fokHSJLEfKTj7PH2ck6g0XEG VmoVLxY5MDCvF04RGtqHqeFLsZx8w+wjug== X-Google-Smtp-Source: ABdhPJwdBYADD6Fsl5UNqM+cmnyZFEbP+GJ+S+0ls87A6l51usvh9jwjKqXY8MiLPayhAITIUxxhQg== X-Received: by 2002:a05:620a:2941:b0:478:316e:80cf with SMTP id n1-20020a05620a294100b00478316e80cfmr9984913qkp.118.1646012836039; Sun, 27 Feb 2022 17:47:16 -0800 (PST) Received: from hurd (dsl-141-227.b2b2c.ca. [66.158.141.227]) by smtp.gmail.com with ESMTPSA id v26-20020a05622a189a00b002ddd1f76c2fsm5973412qtc.17.2022.02.27.17.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Feb 2022 17:47:15 -0800 (PST) From: Maxim Cournoyer To: Mortimer Cladwell Subject: Re: Reduce (use-module... to minimally required set References: Date: Sun, 27 Feb 2022 20:47:14 -0500 In-Reply-To: (Mortimer Cladwell's message of "Thu, 17 Feb 2022 03:12:25 -0500") Message-ID: <87sfs3u5i5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::72b (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::72b; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x72b.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646012851; 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=f05/C1SjOG3RWxl20ugoFekuWixE7B1F7fY5xDV4eX4=; b=QsWl8m8iNNhvN27ObUKmQ3sCtCmv3QPZc1yX7AqKuO1e7kEpoxDC3UByaDdDb5R+kqoi/7 mx7FgChI1uAxRzhvEeioxS7bECece/sZFZkNNgpAdnpvh0fut3HuF0iwgkqu+P8QPHVH/Q DGo+nZdUtZ9O/drBWioc46etmOM/zFi+YJyoSCcWYJubKs15ki8/c0DegBsxjZbbLvhRgQ kVkvjx2SbH7mCw3Kc16+6hjBFKe0KJzKqaYgkn6DfndkTG7Yiamt9oGVJZUNLcXwncm0CK S0iTrOErFI5cHlDVwc2uDSp6UvV88slfOsmaeOINFyoBOeKCVJKmnusqvX5wbQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646012851; a=rsa-sha256; cv=none; b=BlzPH1eYx/pfN65mgbp+OgqrHuZFMQLgaEGnZnRYxGd+3gUD3hjTs4AYHDPSZe2OlYmUNL HIV6sVAbR6PKpJ7Owe5gf6nEbGTjl1l/2C5AuUmlkOUXv/nG8/HYTTtX/ZYL2wkyKiy67g 1A5Jh+nBd84B1iz6UtUglyhILsYRIsb2vi9rcXNlUI3PhubY29QMVi33tzaT5wl4N6PxXw t+x7r6/zOSERqx022FD7wun/C+U17IBaqVuTHs2Bcl05wGn8cVwXoxuHaDrKyhZ1XDLzeF zf1+TicmMgV6IypjGWzIep/fMdgd7uwR7vFMeMNF7+5GsLEAigYGhhfoY96sFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Feql6hX9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Feql6hX9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A27F712018 X-Spam-Score: -6.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: TRaIAbGYAUKR Hello Mortimer, Mortimer Cladwell writes: > Hi, > I have taken the Artanis packaging recipe from guile-xyz.scm and modified > it to suit my needs. For the (use-module... section I simply copied all > the modules required by guile-xyz.scm. I suspect Artanis requires a much > smaller subset. Is there a way to report modules actually used so I can > reduce the (use-module... statement to the bare minimum? There are some warnings you can get via 'guild compile'; e.g.: --8<---------------cut here---------------start------------->8--- $ guild compile -Whelp The available warning types are: `unsupported-warning' warn about unknown warning types `unused-variable' report unused variables `unused-toplevel' report unused local top-level variables `shadowed-toplevel' report shadowed top-level variables `unbound-variable' report possibly unbound variables `macro-use-before-definition' report possibly mis-use of macros before they are defined `use-before-definition' report uses of top-levels before they are defined `non-idempotent-definition' report names that can refer to imports on first load, but module definitions on second load `arity-mismatch' report procedure arity mismatches (wrong number of arguments) `duplicate-case-datum' report a duplicate datum in a case expression `bad-case-datum' report a case datum that cannot be meaningfully compared using `eqv?' `format' report wrong number of arguments to `format' --8<---------------cut here---------------end--------------->8--- 'unused-toplevel' is close but seems limited to variables, which modules aren't apparently. It'd be a very useful thing to add, indeed! Maxim