From unknown Wed Jun 18 23:11:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#51570 <51570@debbugs.gnu.org> To: bug#51570 <51570@debbugs.gnu.org> Subject: Status: [PATCH] build-system: haskell: Add =?UTF-8?Q?=E2=80=98hackage-uri=E2=80=99?= procedure. Reply-To: bug#51570 <51570@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:11:12 +0000 retitle 51570 [PATCH] build-system: haskell: Add =E2=80=98hackage-uri=E2=80= =99 procedure. reassign 51570 guix-patches submitter 51570 Xinglu Chen severity 51570 normal tag 51570 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 02 12:48:29 2021 Received: (at submit) by debbugs.gnu.org; 2 Nov 2021 16:48:29 +0000 Received: from localhost ([127.0.0.1]:37923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhwxZ-0004bS-7v for submit@debbugs.gnu.org; Tue, 02 Nov 2021 12:48:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:57562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhwxX-0004bK-Kh for submit@debbugs.gnu.org; Tue, 02 Nov 2021 12:48:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhwxX-0002qQ-4y for guix-patches@gnu.org; Tue, 02 Nov 2021 12:48:27 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:38528 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhwxS-0006Sw-UH for guix-patches@gnu.org; Tue, 02 Nov 2021 12:48:25 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1635871690; bh=tp4ATTPa+guOMa8We1mOXufvp8ymh0cQvJ5gIPOpXRM=; h=From:To:Subject:Date; b=IYXgSYjfhYBdz60YLPW7McQBlcJPYG+fCjAXo50M9uRnhm+wag/9NjD5mlcX5clWU D2sSRTuJ1CwKSVX5jSAxezPksz3NnKmoc69/b/3DPp5wJ01QyhmQFNVLIKuksl5EHR yxl4lx43hcUD6jjFc31zK43/OOfCtLfkNnvGSqKM= To: guix-patches@gnu.org Subject: [PATCH] =?UTF-8?q?build-system:=20haskell:=20Add=20=E2=80=98hacka?= =?UTF-8?q?ge-uri=E2=80=99=20procedure.?= Message-Id: <30e3db0aca5699b7d42f7107723e9dde4f16a5f7.1635871607.git.public@yoctocell.xyz> Date: Tue, 02 Nov 2021 17:48:09 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 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, FROM_SUSPICIOUS_NTLD=0.001, FROM_SUSPICIOUS_NTLD_FP=1.688, PDS_OTHER_BAD_TLD=0.001, PDS_RDNS_DYNAMIC_FP=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, TO_NO_BRKTS_DYNIP=0.25 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * guix/build-system/haskell (hackage-uri): New procedure. * guix/import/hackage.scm (hackage-module->sexp, latest-release): Use it. * tests/hackage.scm (match-ghc-foo, match-ghc-foo-6, match-ghc-foo-r [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.51.188.17 listed in wl.mailspike.net] 0.5 FROM_SUSPICIOUS_NTLD_FP From abused NTLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) * guix/build-system/haskell (hackage-uri): New procedure. * guix/import/hackage.scm (hackage-module->sexp, latest-release): Use it. * tests/hackage.scm (match-ghc-foo, match-ghc-foo-6, match-ghc-foo-revision, match-ghc-foo-import): Adjust accordingly. --- guix/build-system/haskell.scm | 7 +++++++ guix/import/hackage.scm | 4 ++-- tests/hackage.scm | 20 ++++---------------- 3 files changed, 13 insertions(+), 18 deletions(-) diff --git a/guix/build-system/haskell.scm b/guix/build-system/haskell.scm index 18a584f782..48f3452931 100644 --- a/guix/build-system/haskell.scm +++ b/guix/build-system/haskell.scm @@ -2,6 +2,7 @@ ;;; Copyright =C2=A9 2015 Federico Beffa ;;; Copyright =C2=A9 2020 Timothy Sample ;;; Copyright =C2=A9 2020 Simon Tournier +;;; Copyright =C2=A9 2021 Xinglu Chen ;;; ;;; This file is part of GNU Guix. ;;; @@ -41,6 +42,12 @@ (define-module (guix build-system haskell) ;; ;; Code: =20 +(define (hackage-uri name version) + "Return a URI string for the Haskell package hosted on Hackage correspon= ding +to NAME and VERSION." + (string-append "https://hackage.haskell.org/package/" name "/" + name "-" version ".tar.gz")) + (define %haskell-build-system-modules ;; Build-side modules imported by default. `((guix build haskell-build-system) diff --git a/guix/import/hackage.scm b/guix/import/hackage.scm index 03881f1a3d..51581f15d7 100644 --- a/guix/import/hackage.scm +++ b/guix/import/hackage.scm @@ -303,7 +303,7 @@ (define (maybe-arguments) (version ,version) (source (origin (method url-fetch) - (uri (string-append ,@(factorize-uri source-url version)= )) + (uri (hackage-uri ,name version)) (sha256 (base32 ,(if tarball @@ -367,7 +367,7 @@ (define (latest-release package) (hackage-cabal-url hackage-name)) #f) ((_ *** ("version" (version))) - (let ((url (hackage-source-url hackage-name version))) + (let ((url (hackage-uri hackage-name version))) (upstream-source (package (package-name package)) (version version) diff --git a/tests/hackage.scm b/tests/hackage.scm index aca807027c..ba694661f3 100644 --- a/tests/hackage.scm +++ b/tests/hackage.scm @@ -170,10 +170,7 @@ (define-package-matcher match-ghc-foo ('source ('origin ('method 'url-fetch) - ('uri ('string-append - "https://hackage.haskell.org/package/foo/foo-" - 'version - ".tar.gz")) + ('uri ('hackage-uri "foo" 'version)) ('sha256 ('base32 (? string? hash))))) @@ -215,10 +212,7 @@ (define-package-matcher match-ghc-foo-6 ('source ('origin ('method 'url-fetch) - ('uri ('string-append - "https://hackage.haskell.org/package/foo/foo-" - 'version - ".tar.gz")) + ('uri ('hackage-uri "foo" 'version)) ('sha256 ('base32 (? string? hash))))) @@ -343,10 +337,7 @@ (define-package-matcher match-ghc-foo-revision ('source ('origin ('method 'url-fetch) - ('uri ('string-append - "https://hackage.haskell.org/package/foo/foo-" - 'version - ".tar.gz")) + ('uri ('hackage-uri "foo" 'version)) ('sha256 ('base32 (? string? hash))))) @@ -409,10 +400,7 @@ (define-package-matcher match-ghc-foo-import ('source ('origin ('method 'url-fetch) - ('uri ('string-append - "https://hackage.haskell.org/package/foo/foo-" - 'version - ".tar.gz")) + ('uri ('hackage-uri "foo" 'version)) ('sha256 ('base32 (? string? hash))))) base-commit: 0e19713c1fbfd3a01347e0d490434a53a596ed3c --=20 2.33.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 03 06:29:46 2021 Received: (at 51570) by debbugs.gnu.org; 3 Nov 2021 10:29:46 +0000 Received: from localhost ([127.0.0.1]:39125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miDWb-0001Tb-RQ for submit@debbugs.gnu.org; Wed, 03 Nov 2021 06:29:46 -0400 Received: from mail-qk1-f177.google.com ([209.85.222.177]:36550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miDWZ-0001TJ-Ca for 51570@debbugs.gnu.org; Wed, 03 Nov 2021 06:29:44 -0400 Received: by mail-qk1-f177.google.com with SMTP id i9so1769988qki.3 for <51570@debbugs.gnu.org>; Wed, 03 Nov 2021 03:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BQlcBHvnnNTFc6Y+2J+q2neaEvGu31L+PhWxXkOPcgM=; b=N9gORNYsWFQJhcvSWgtEI4C8Qf9Unk80NYcFemC+VUZV5qdE+8kHyxZhTd2t/yztKI IEOvDCD8SeSBiEhT6Sb32jUjUjVbnY8sFP5OrRMskAUsVn4v91X/2awIDYnRaG1IkuFH zVTDR+Z/aw7rcOMuHznW307aBJNnDlImE8M9xfayl/TFGuJSN9ITwCK3thSSVdoZp3H3 TW//fsaCtzYoWzm0wUcEr9OpUv6hMxE4qvmlIZGSuOnheyWRhN1Jp9t79sMaMgQ8xGOd 2gHjzoM/UlQehmFiKDysnVQqsIBCq/PO5sGMRLYaC4ZWfVlGKE+8tnaVVPVp+4iirvwn 9f3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BQlcBHvnnNTFc6Y+2J+q2neaEvGu31L+PhWxXkOPcgM=; b=gRL7FWfLyoGKXptuGc/60Tz9ut+wQ8wX/6K91EOyggvugJ4EbqmdyTdTdkINwmCuyR T96QMv9u0sly+wXf2daDEEkCFivR9VeGS9pUG/XUKppf9sdWM8VN76ZHKICjDq+jEkeO SZV8zfRmBMeeR+Gmd1qyuNl9aiKk2XqBUxtL2jN80RxQqdlIN7P3u3NkxCv9yGsi53mt WJdX0dcLM4D6yUbdClNrJqu/Uzp2HJOEE6IThWQ9BiDdeasnLGsd5Vi9LnwQ6TLfi5At VBrrZNj+aDxPAdOYEu2DxfUcwe3uCiA7xw35VttoHjYLvWZMl1v8PcbSxOHfdJb+BC20 GRAw== X-Gm-Message-State: AOAM532oloTglvtokOSlBEOciSewzdMZE7zrXguQpMboffgC5ZkK/oBU 2dkAvJfsZJ67FTsTMuw/aMLYpptYWlGEPgiVObNbOArs X-Google-Smtp-Source: ABdhPJxd0g6m3HA+8+Yle/huvSBwD/v+sk12nAXVPH6AJCrlJEn4nIUTeh3o3Ad03h0wBTfY4d0S9KfgRVXE/sQ2u9Y= X-Received: by 2002:a05:620a:4008:: with SMTP id h8mr27789751qko.253.1635935378005; Wed, 03 Nov 2021 03:29:38 -0700 (PDT) MIME-Version: 1.0 References: <30e3db0aca5699b7d42f7107723e9dde4f16a5f7.1635871607.git.public@yoctocell.xyz> In-Reply-To: <30e3db0aca5699b7d42f7107723e9dde4f16a5f7.1635871607.git.public@yoctocell.xyz> From: zimoun Date: Wed, 3 Nov 2021 11:29:26 +0100 Message-ID: Subject: =?UTF-8?B?UmU6IFtidWcjNTE1NzBdIFtQQVRDSF0gYnVpbGQtc3lzdGVtOiBoYXNrZWxsOiBBZGQg?= =?UTF-8?B?4oCYaGFja2FnZS11cmnigJkgcHJvY2VkdXJlLg==?= To: Xinglu Chen Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, Thanks for this helpful patch. On Tue, 2 Nov 2021 at 17:49, Xinglu Chen wrote: Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zimon.toutoune[at]gmail.com) 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.222.177 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.222.177 listed in wl.mailspike.net] X-Debbugs-Envelope-To: 51570 Cc: 51570@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Hi, Thanks for this helpful patch. On Tue, 2 Nov 2021 at 17:49, Xinglu Chen 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'? Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 05 07:53:29 2021 Received: (at 51570) by debbugs.gnu.org; 5 Nov 2021 11:53:29 +0000 Received: from localhost ([127.0.0.1]:44997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mixmj-0003eF-7Q for submit@debbugs.gnu.org; Fri, 05 Nov 2021 07:53:29 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:41288 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mixmh-0003dy-As for 51570@debbugs.gnu.org; Fri, 05 Nov 2021 07:53:28 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1636113199; bh=V5UmyJrhqkm3y2SAML68a7LXuyXArHmYyvVqu+6ODAQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=uYtu9csQjL994l2yIsXwlvLJYNoHrTmEQ7YGVkUZbBwg++1ekuJ73SH7qRGMAo5YX cLbgURRzmvG/GZbq6LCuET6hOU1IzHPXevVzWvGQ4a9S8QqO2ej3iLhQX/CJdicSxx 3RSgX8Td4+7buZjWqreGfLe4lCb3m/djjzGhihIA= To: zimoun Subject: Re: [bug#51570] [PATCH] build-system: haskell: Add =?utf-8?Q?=E2=80=98hackage-uri=E2=80=99?= procedure. In-Reply-To: References: <30e3db0aca5699b7d42f7107723e9dde4f16a5f7.1635871607.git.public@yoctocell.xyz> Date: Fri, 05 Nov 2021 12:52:59 +0100 Message-ID: <87y2624y5g.fsf@disroot.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, On Wed, Nov 03 2021, zimoun wrote: > Hi, > > Thanks for this helpful patch. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 PDS_RDNS_DYNAMIC_FP RDNS_DYNAMIC with FP steps X-Debbugs-Envelope-To: 51570 Cc: 51570@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, On Wed, Nov 03 2021, zimoun wrote: > Hi, > > Thanks for this helpful patch. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.0 PDS_RDNS_DYNAMIC_FP RDNS_DYNAMIC with FP steps --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 wrote: > >> +(define (hackage-uri name version) >> + "Return a URI string for the Haskell package hosted on Hackage corres= ponding >> +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=E2=80=99t know of a way to automate this; may= be you have some ideas? :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmGFGxwVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x58UQP/3Hq/6EToOjOoGruPb+lTn3G5jOx KN4QMuc3KlgU11UYCnf3+3aSHc5xBHT01IrvR3knndh2eQ6po/wv4kDVzsCzfeUa IaeuFdbCiDa3nryFrHCVGBq+ZEA/vy7LVyaUVUF/RshCYKDvg1sKBm/6teLEeoQF bhfizazmAIhY0SvrzUGhb/Gg9O8hJwoJLlGPocRFW49UhtHWR1l+Algc5P3oaUL8 5+JGV/xbz+aUCb7ZORjOAACh3/xQezkN6ip36NO3R9SugU96EUEn1AuRDrZ3eklJ XrWTNWuw4YXCCGMYcQh3sqzcnoeS1kVI6xYlxO40UrkyDweMUFXcQk3EMj4h/sSM vl7OLTRkTtcoLUo7659ux3rzWGxS2eQpuMHC/h0BdapAGDV++rib+kXvc2CJtvE3 1wVYCb21oLpEhEjyL/MJa4M2XGm/Fdzi87q9PYcLPvQfdAzZjaGoHYP395aV5zXd WW8vU+aC6DTfBwtdiJOw8xj08II23AXVt/fk4sjZ3aceHqk/ViGsHSEuvUjWtyA4 FDDYpwi6jmoY6FtQION2SiXGQqOMOYRyxzTmzanqrDKNUe5vnwyfUr895Iw4nDF0 phX/xFF+bRNixmhYg2Vt1naqVrR8+B1JeHUwhcm1ouZo6583xmE8/2Z/62fktD7x qIL6LNRJvFAe39io =tzS+ -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 01 10:32:18 2021 Received: (at 51570-done) by debbugs.gnu.org; 1 Dec 2021 15:32:18 +0000 Received: from localhost ([127.0.0.1]:45122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msRak-0004WI-Dz for submit@debbugs.gnu.org; Wed, 01 Dec 2021 10:32:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msRai-0004W6-EZ for 51570-done@debbugs.gnu.org; Wed, 01 Dec 2021 10:32:17 -0500 Received: from [2001:470:142:3::e] (port=53604 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msRac-0006p6-OE; Wed, 01 Dec 2021 10:32:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ntrZwsj0v0m2Uv14OPcIGXKs7cDV/ueloRmZtnDiG50=; b=mNS6G8kAQuNc+OT7kJtS O6OM8LNGy+Y0DHEb8CXpGQchYWHghl6zfj/uXMgH3lB9NDVk4zvMhl9XRKlPexN7JQX1j4nISwoE4 qBzunXjgU5nMjeGhna01kCnPFRuUf7PC++k038FUzkdbgytKo/iZ4G06shjq50BMYmnWjAfLYkfhg CS1IXxRrKMVfOqmp9flBSwlsnDGC3xikLLv0HsrTIHN4k7SWt7lheavJkt3S24aJHN7/e3lR1qsGG GeYbUi781CWCRuL0sHdoNosoEO0gRRIHCFsH4w6AtcAguaHWbjTjv6z8sE0H437ylWkUsefQy4NGZ fjsIb7Ig5I/ylA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:54958 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msRac-000070-4D; Wed, 01 Dec 2021 10:32:10 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Xinglu Chen Subject: Re: bug#51570: [PATCH] build-system: haskell: Add =?utf-8?Q?=E2=80=98hackage-uri=E2=80=99?= procedure. References: <30e3db0aca5699b7d42f7107723e9dde4f16a5f7.1635871607.git.public@yoctocell.xyz> Date: Wed, 01 Dec 2021 16:32:07 +0100 In-Reply-To: <30e3db0aca5699b7d42f7107723e9dde4f16a5f7.1635871607.git.public@yoctocell.xyz> (Xinglu Chen's message of "Tue, 02 Nov 2021 17:48:09 +0100") Message-ID: <87a6hk2vew.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 51570-done Cc: 51570-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) Hi, Xinglu Chen skribis: > * guix/build-system/haskell (hackage-uri): New procedure. > * guix/import/hackage.scm (hackage-module->sexp, latest-release): Use it. > * tests/hackage.scm (match-ghc-foo, match-ghc-foo-6, match-ghc-foo-revisi= on, > match-ghc-foo-import): Adjust accordingly. [...] > +(define (hackage-uri name version) > + "Return a URI string for the Haskell package hosted on Hackage corresp= onding > +to NAME and VERSION." > + (string-append "https://hackage.haskell.org/package/" name "/" > + name "-" version ".tar.gz")) Applied, but I also exported =E2=80=98hackage-uri=E2=80=99 so that it=E2=80= =99s more useful. :-) Thanks, Ludo=E2=80=99. From unknown Wed Jun 18 23:11:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 30 Dec 2021 12:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator