guix-patches
[Top][All Lists]
Advanced

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

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


From: Ludovic Courtès
Subject: bug#51570: [PATCH] build-system: haskell: Add ‘hackage-uri’ procedure.
Date: Wed, 01 Dec 2021 16:32:07 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Hi,

Xinglu Chen <public@yoctocell.xyz> 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-revision,
> match-ghc-foo-import): Adjust accordingly.

[...]

> +(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"))

Applied, but I also exported ‘hackage-uri’ so that it’s more useful.
:-)

Thanks,
Ludo’.





reply via email to

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