From: Lars-Dominik Braun <lars@6xq.net>
To: Xinglu Chen <public@yoctocell.xyz>
Cc: 51655@debbugs.gnu.org
Subject: [bug#51655] [PATCH] build-system: haskell: Add ‘package-with-explicit-haskell’ procedure.
Date: Fri, 12 Nov 2021 11:34:11 +0100 [thread overview]
Message-ID: <YY5DI3ZbADDZg468@noor.fritz.box> (raw)
In-Reply-To: <7f7b889aebed4c17e3a021883bfed1d67c564109.1636216701.git.public@yoctocell.xyz>
Hi,
I’ve tested the patch with the snippet below and it builds most
packages fine, until it hits a type error and aborts. This is probably
expected, since not all packages are compatible with multiple GHC
versions.
The code looks fine, since it’s just moving the Python-specific code to
(guix packages). I don’t feel qualified enough to say whether the new
API in (guix packages) is welcome or not though. Anyone? Maybe it’d
be worth having a common parameter for all build systems?
---
(use-modules (guix build-system haskell)
(gnu packages finance))
(define (default-haskell-8.8)
;; Lazily resolve the binding to avoid a circular dependency.
(let ((haskell (resolve-interface '(gnu packages haskell))))
(module-ref haskell 'ghc-8.8)))
(define package-with-haskell-8.8
(package-with-explicit-haskell (delay (default-haskell-8.8))
"ghc-" "ghc-8.8-"
#:variant-property 'ghc-8.8-variant))
(package-with-haskell-8.8 hledger)
---
Cheers,
Lars
next prev parent reply other threads:[~2021-11-12 10:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-07 10:55 [bug#51655] [PATCH] build-system: haskell: Add ‘package-with-explicit-haskell’ procedure Xinglu Chen
2021-11-12 10:34 ` Lars-Dominik Braun [this message]
2021-11-15 15:03 ` zimoun
2021-12-19 8:47 ` Xinglu Chen
2021-12-19 9:23 ` zimoun
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YY5DI3ZbADDZg468@noor.fritz.box \
--to=lars@6xq.net \
--cc=51655@debbugs.gnu.org \
--cc=public@yoctocell.xyz \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.