From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id l7SOHuGjf2CuJAAAgWs5BA (envelope-from ) for ; Wed, 21 Apr 2021 06:02:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8LErGeGjf2BkcAAA1q6Kng (envelope-from ) for ; Wed, 21 Apr 2021 04:02:41 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CDEDCC6C5 for ; Wed, 21 Apr 2021 06:02:40 +0200 (CEST) Received: from localhost ([::1]:33818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZ44V-00048M-L6 for larch@yhetil.org; Wed, 21 Apr 2021 00:02:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZ44N-00048F-2G for help-guix@gnu.org; Wed, 21 Apr 2021 00:02:31 -0400 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:38641) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZ44L-0003tC-DV for help-guix@gnu.org; Wed, 21 Apr 2021 00:02:30 -0400 Received: by mail-lf1-x129.google.com with SMTP id j18so64818843lfg.5 for ; Tue, 20 Apr 2021 21:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=4M04WFb/ZBfoG8t151k1mFBqw5ITcP+o0APirwqNcT0=; b=DP+lvfss3RgfdScTrPSpMaKZCgP8+h/Y39W7NQdkLafkFvxxubO18P8miKXw2sYlL5 2Q4WTTFhSqBfalIRt/pXMbLaq9aZe1/0n72ZWckQ46K7yUlHNitYJTOWYS8wa8JZTRhk YAXFLerj0YJX/4G4SNl6lQXqdBKOKesqqlL6B3wmZzlqjtdjZHBybE6OwTiCALlUOc8j WmRTbnyz5JjvqjZOShA10Qb8BrknsvLUHkHzo74t181f6KmoHddLrjJsegPcjvCU8wPF /ryOEFVFh3hiEqA8aMK3R7f7qQs87F5raJVGN0DrNKHcWiFddlecfR+yW17BbJgqDvad P6rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=4M04WFb/ZBfoG8t151k1mFBqw5ITcP+o0APirwqNcT0=; b=bF9YdCLm6Cr+slmxuB7BtlHP3QclIyJcrmHrkQ7oUlRR+5IheeLMq7jRdc+BLxl073 TLDVkDoKraC6lR2zjQ5n4v4yJCSwdydYj8TfIGNF1u5OkZpifSQ+77gpvwISOK+iaWe5 A5VIoR/7vuJDitk3bwiCWMnAgB0n1UYCWm8oCGYYKxX/7VeswT39gUxe2YmCjsQwmlDz mdjR+d3M857ijPmZQaI5hKY3/3SNOqcd+tiXpRmz2hWFKhsOMezdEIa5yoH34LFUhZNJ HZY65sE3EVyYw8xLRMjbWF/JRFDIqapUOP09c4DWLJ8BrJrawUoW4p26QQPxld6cG1+B 4wag== X-Gm-Message-State: AOAM53281fJGrZtaOJ4aXtzcwQ7brsjHJqibwlBTO27ZCFGyG4hcRbM8 hltg8kz/SdZ0W+0Nf/bAyfGcJdgNte4= X-Google-Smtp-Source: ABdhPJwaq9xRpoDyFpVtc0rNunv/Xa74kITBf+n9V7pSNoVyy5zxOQWvWoWM3i+FRfuYVUvSLubjBg== X-Received: by 2002:a05:6512:2397:: with SMTP id c23mr12466143lfv.396.1618977746230; Tue, 20 Apr 2021 21:02:26 -0700 (PDT) Received: from guixsd ([88.201.161.72]) by smtp.gmail.com with ESMTPSA id o29sm83434lfn.95.2021.04.20.21.02.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 21:02:25 -0700 (PDT) From: Oleg Pykhalov To: William Subject: Re: xmonad, xmonad-contrib & GHC_PACKAGE_PATH? References: Date: Wed, 21 Apr 2021 07:00:16 +0300 In-Reply-To: (William's message of "Tue, 20 Apr 2021 09:47:41 +0200") Message-ID: <878s5cmgmn.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=go.wigust@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618977760; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=4M04WFb/ZBfoG8t151k1mFBqw5ITcP+o0APirwqNcT0=; b=nr3FxLU+pWIS5KHlb0gVw6j7B4bp2++Rpc3aa/hAZkXu1VJshWq7RSxI6J/5vfBrD0TXHl ouLxReMhui4rwxE1ZYEs5jMAfg9uo0qsjJ0DmrHqBVftn8Y1+IOTu7Rsv06oAINh9sEtZN csiYhbqeasR5Zcmky68eIrXZGJBoPKryIQXvTtETQ0gkSxMqsz9yG+XThNSOZ1fwWGoaTe x6Sze/isAT9YpxuMO/QEyZIi9yipbXzi5ZiCJbAz5FmUf1Z5rEx5LedFCtaN5U5l6NtJ3P hxsjpF0UQQPtd+TX5yHIfF77kL6gyeFDhk9E1PxkcZqiL8nLliCF70JOaxd8Ig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618977760; a=rsa-sha256; cv=none; b=gal20Ym7pylylyk8J/zk6qeTCpR6CQuWzhncNEjybrVQfxqWqBdamXFGIgsmAmSTEKwBz6 ftMi9wMi5S3/ZKc9QOsuQJt6wnHzrgQMHIb1LjvJEot9bTQfHGRRbzOHJY/R0dB75cRzY3 g8eplj3YeZBCX/qkSXaZcQ5h/1OMbVjdsIYaLf9e0KT5KWosvS+mIMTr4UCfBrKEuBio3x FX5rnjISzCVzJopL+YBepKdLv4jyTrM4JPXvX9Owh1+g8sXnKHORYGkAgJqauIjyTB3zyE CON0fZuUZA4IRSCpPTS+dIE0OxwXhUFq6TGdt+bhYDPiRPjexUEkyrwh7LWSCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=DP+lvfss; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.74 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=DP+lvfss; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: CDEDCC6C5 X-Spam-Score: -1.74 X-Migadu-Scanner: scn0.migadu.com X-TUID: zPg02K2XjbPj --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, William writes: > Do I need to fix a ghc version in my manifest? how do I find out which > ghc xmonad used? If I need other libs (ghc-hostname for example) how > do I specify one that's compiled with the same ghc? All haskell packages use haskell-build-system as a build-system. From=20guix/build-system/haskell.scm file: =2D-8<---------------cut here---------------start------------->8--- (define (default-haskell) "Return the default Haskell package." ;; Lazily resolve the binding to avoid a circular dependency. (let ((haskell (resolve-interface '(gnu packages haskell)))) (module-ref haskell 'ghc))) =2D-8<---------------cut here---------------end--------------->8--- If you try to evaluate this, you need 8.6.5: =2D-8<---------------cut here---------------start------------->8--- oleg@guixsd ~$ guix build -e "(let ((haskell (resolve-interface '(gnu packa= ges haskell)))) (module-ref haskell 'ghc))" /gnu/store/49567qgp72hb67w3y9x892ib1yz6nk8h-ghc-8.6.5-doc /gnu/store/wkhglgmlz28kpkd3ky7f3kfjkxmvyb10-ghc-8.6.5 =2D-8<---------------cut here---------------end--------------->8--- But default ghc is latest version: =2D-8<---------------cut here---------------start------------->8--- oleg@guixsd ~$ guix build ghc 123.7 MB will be downloaded: /gnu/store/mrgww5amm1z29snrsmfgvrbbv584zsxk-ghc-8.8.3-doc /gnu/store/gsgmw9iilvfqwixjl86gbmxyy7xapkxh-ghc-8.8.3 ... =2D-8<---------------cut here---------------end--------------->8--- In you manifest (specifications->manifest '("ghc@8.6" ...)) or better don't use specifications->manifest at all for this, because it will break on upgrade after packages will be upgraded to new haskell. Better use packages->manifest for this: =2D-8<---------------cut here---------------start------------->8--- (use-modules (gnu) (guix profiles)) (use-package-modules haskell) (packages->manifest (list ghc)) =2D-8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAmB/o1AUHGdvLndpZ3Vz dEBnbWFpbC5jb20ACgkQFn+OpQAa+pzbshAAxu8xKu8TCCitUyn5pQsvtOhc6FsB sJ8cphM6r/xFG97rJgp1UkUVjV8x+InVMcWBNi3HhmuFTcqANOHMurd3x4d0qQFF DTcVjiglTCevu4TICqeqvO0wRu8dazTS6iyC0XoDfMg6+/NKv1BLWgtEd1wf+/Os E5kZ5fDXXJY7CsRgBRg7qfQroJ8dWS/8IOKkpS9WQQCVT/Vpii/sXVcRbtk1Bkgf OwpIHneF7/pBeDn4Hkz8S+t9+tLWQnzUcuhbxsAqqXyvCqpAdcJT/cScPBbgM3Lz 77EWvOdOQ5bJP7gR9ubDr7IR8GCPrKzPlvoHwRC8LFVgvK6+FhOYAtcqaiOr532w At0XKe8pGkjiPOw5wM/bBrXotjN4C5wxLSYnvRTHYiywm280iQlWIk/May3Dreqk BZHvecWBNnS1MdNwhjStiMrDf/6l+3359S+aByNSrK5GlDJ1vhu8aHJESHvOqqNo IuOczCTPzqglvJziEZ3ZLb9ZqMATRXYhTBk+h16MQeuMVdiFKv7cpc48XiEkAh80 LlpK5s6eMxvj2bGPXyv1yVi6LpraDIW2rnyyRAiGGr6+uZvtJ70u+R+nznJtmC2F Qw0ck+u9l8kEwsECrL8AyDzm1RXMS2Ag6yQeoUyMh3NdKxkZhwWAo5XcT11B3aeO 6XW7gBhdn+vksP4= =75ax -----END PGP SIGNATURE----- --=-=-=--