[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving general useful procedures to the utils-modules

From: Ricardo Wurmus
Subject: Re: Moving general useful procedures to the utils-modules
Date: Fri, 28 Dec 2018 16:10:09 +0100
User-agent: mu4e 1.0; emacs 26.1

swedebugia <address@hidden> 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’m wary of packages
that provide “miscellaneous” tools and I think we should avoid that.
In more focused cases like the monads code I agree that it would be nice
to break these out into separate projects.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]