unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Vollmert <rob@vllmrt.net>
To: Timothy Sample <samplet@ngyro.com>
Cc: guix-devel@gnu.org
Subject: Re: on cabal revisions
Date: Fri, 14 Jun 2019 16:30:25 +0200	[thread overview]
Message-ID: <2CEDD93D-5200-4B3E-AA2E-BA1FE6168B40@vllmrt.net> (raw)
In-Reply-To: <87r27xa7f0.fsf@ngyro.com>

On 13. Jun 2019, at 16:25, Timothy Sample <samplet@ngyro.com> wrote:
> 
>> I remembered one more: guix refresh. As far as I understand, it works
>> only on the level of the source field, thus having the revision there
>> would help make it revision-aware. I’m unsure though whether the
>> snippet approach actually improves things here — probably the refresh
>> code would see the resulting gexp and not the raw data.
> 
> This is a very good point!  Unfortunately, AFAICT, the refresh mechanism
> only works on the level of versions.  It has no support for automated
> patches or snippet changes.  It looks like updating the Cabal revision
> using the refresh script would require one or two far-reaching changes.
> Are there other package repositories that use a release-with-patches
> style?  Having another example would make it easier to design at the
> right level of abstraction.
> 
> Now I think that we should have a good plan for refreshing before making
> a bunch of changes to the Cabal revision stuff.  Otherwise, we might
> have to change everything again if and when we make refreshing work.
> 
> Thoughts?

I agree that reworking the revision thing shouldn’t happen first. I’m
happy to understand how it might work for now.

Is “guix refresh” even a good approach for the haskell packages? There’s
a lot of work being done to put consistent sets of haskell packages, e.g.
the whole stackage project. Does Guix mean to replicate this work, or would
it maybe be a good choice to follow stackage sets?

How big is the diff between the current haskell package definitions and
the result of guix hackage import? It would be tempting to consider most
as an output of guix hackage import, and to refresh them by reimporting,
possibly based on a version set pulled from stackage.

Hmm another tangential question: Is there any particular system to the
splitting of gnu/packages/haskell*.scm?

haskell.scm itself is huge — does this have performance implications? I’ve been
wondering whether guile scales well with module size. It appears that circular
imports between package modules are not a problem? Personally I’d like to
see the haskell compiler in a different module from hackage modules. Other
than that, keeping our own categorization seems wasteful, why not one
haskell-hackage.scm that’s sorted alphabetically by package name?

Robert

  reply	other threads:[~2019-06-14 14:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-11 20:56 on cabal revisions Robert Vollmert
2019-06-12  4:54 ` Timothy Sample
2019-06-13 11:46   ` Robert Vollmert
2019-06-13 14:25     ` Timothy Sample
2019-06-14 14:30       ` Robert Vollmert [this message]
2019-06-14 15:36         ` Timothy Sample
2019-06-14 20:24           ` Ricardo Wurmus
2019-06-16  8:00             ` haskell package organization (Re: on cabal revisions) Robert Vollmert
2019-06-14 20:28           ` on cabal revisions Ricardo Wurmus
2019-06-15  9:02           ` reproducibility and bootstrapping in mid 2019 (was Re: on cabal revisions) Giovanni Biscuolo
2019-06-14 20:12   ` on cabal revisions Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2CEDD93D-5200-4B3E-AA2E-BA1FE6168B40@vllmrt.net \
    --to=rob@vllmrt.net \
    --cc=guix-devel@gnu.org \
    --cc=samplet@ngyro.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).