From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 12 05:34:30 2021 Received: (at 51655) by debbugs.gnu.org; 12 Nov 2021 10:34:30 +0000 Received: from localhost ([127.0.0.1]:43537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlTt7-0001Ug-N8 for submit@debbugs.gnu.org; Fri, 12 Nov 2021 05:34:30 -0500 Received: from mout-p-202.mailbox.org ([80.241.56.172]:19954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlTt2-0001UM-8a for 51655@debbugs.gnu.org; Fri, 12 Nov 2021 05:34:28 -0500 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:105:465:1:3:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4HrFLx3dXzzQkjN; Fri, 12 Nov 2021 11:34:17 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6xq.net; s=MBO0001; t=1636713255; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3FdcOwzOxF1+NzGzo5c9LcOB/0btj3vKAZHDcmwD7Mk=; b=d45bbg0DkJxoT6TWb3/M9/RRuG/qYpy9tXJn0g5gkJamEK54X695+KrbDe0STEc8AyE2/0 2B2DbXebwa2qVtjV8t9IpVqU/HxRPXOJ1HAXMAA1ocNF9zld4fBtQFjYBqt/3WgdQaSmzh 66XToIWBbxotmv+I/Z/HAXlJ75d0oznFk8g9RF6fVpa76v4tzhWzqz23+4ThhZEWNBSYM+ MuSoxl7cCM/wEyMUIlEgMLFiNfCOsO8BR1kJC3Jdq7cWGjzaW+rB5nx5o0zcky2VPrNFMV H/9k57wYi8vdTxGaXVvk3xFj86bMXNJGpnI5hA+/e4VpGuNoRDvTeUmYqyVB2w== Date: Fri, 12 Nov 2021 11:34:11 +0100 From: Lars-Dominik Braun To: Xinglu Chen Subject: Re: [bug#51655] [PATCH] =?utf-8?Q?build-sy?= =?utf-8?Q?stem=3A_haskell=3A_Add_=E2=80=98package-with-explicit-haskell?= =?utf-8?B?4oCZ?= procedure. Message-ID: References: <7f7b889aebed4c17e3a021883bfed1d67c564109.1636216701.git.public@yoctocell.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7f7b889aebed4c17e3a021883bfed1d67c564109.1636216701.git.public@yoctocell.xyz> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51655 Cc: 51655@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.7 (-) 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