GNU bug report logs - #51570
[PATCH] build-system: haskell: Add ‘hackage-uri’ procedure.

Previous Next

Package: guix-patches;

Reported by: Xinglu Chen <public <at> yoctocell.xyz>

Date: Tue, 2 Nov 2021 16:49:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Xinglu Chen <public <at> yoctocell.xyz>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 51570 <at> debbugs.gnu.org
Subject: [bug#51570] [PATCH] build-system: haskell: Add ‘hackage-uri’ procedure.
Date: Fri, 05 Nov 2021 12:52:59 +0100
[Message part 1 (text/plain, inline)]
Hi,

On Wed, Nov 03 2021, zimoun wrote:

> Hi,
>
> Thanks for this helpful patch.

You are welcome!  :-)

> On Tue, 2 Nov 2021 at 17:49, Xinglu Chen <public <at> yoctocell.xyz> wrote:
>
>> +(define (hackage-uri name version)
>> +  "Return a URI string for the Haskell package hosted on Hackage corresponding
>> +to NAME and VERSION."
>> +  (string-append "https://hackage.haskell.org/package/" name "/"
>> +                 name "-" version ".tar.gz"))
>
> It seems the correct way.  Aside this change for future imports from
> Hackage, does it make sense to replace the current 'string-append' in
> all package definitions by this 'hackage-uri'?

That would be nice, but I don’t know of a way to automate this; maybe
you have some ideas?  :-)
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 170 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.