From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Moving general useful procedures to the utils-modules Date: Fri, 28 Dec 2018 16:10:09 +0100 Message-ID: <877eft4rhq.fsf@elephly.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:32842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gctzF-0005EI-E6 for guix-devel@gnu.org; Fri, 28 Dec 2018 10:23:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gctmM-0004yF-PF for guix-devel@gnu.org; Fri, 28 Dec 2018 10:10:31 -0500 Received: from sender-of-o53.zoho.com ([135.84.80.218]:21733) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gctmM-0004sb-Gp for guix-devel@gnu.org; Fri, 28 Dec 2018 10:10:26 -0500 In-reply-to: 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: swedebugia Cc: guix-devel swedebugia writes: > I found this in guix/build/cargo-build-system.scm: > > (define (touch file-name) > (call-with-output-file file-name (const #t))) > > I think we should move useful ones like this to (build utils) and > consider merging (build utils) and (import utils) into a single > utils-module. While I agree that we should avoid duplication, note that (guix build utils) is build-side code, so changing it causes rebuilds. > I think we should also consider factoring out some of these utils in a > separate guix-utils library that can be used by other guile-projects > WITHOUT depending on the whole of guix. (guix import utils) may not necessarily be useful. I=E2=80=99m wary of pac= kages that provide =E2=80=9Cmiscellaneous=E2=80=9D tools and I think we should av= oid that. In more focused cases like the monads code I agree that it would be nice to break these out into separate projects. -- Ricardo