From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kgl4G4Myc2APOQAAgWs5BA (envelope-from ) for ; Sun, 11 Apr 2021 19:31:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WKFCFIMyc2DzDQAA1q6Kng (envelope-from ) for ; Sun, 11 Apr 2021 17:31:47 +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 BFDB611369 for ; Sun, 11 Apr 2021 19:31:46 +0200 (CEST) Received: from localhost ([::1]:38098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVdw1-0002ba-Vj for larch@yhetil.org; Sun, 11 Apr 2021 13:31:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVdvb-0002bM-Kf for help-guix@gnu.org; Sun, 11 Apr 2021 13:31:19 -0400 Received: from knopi.disroot.org ([178.21.23.139]:50888) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVdvX-0004o6-JV for help-guix@gnu.org; Sun, 11 Apr 2021 13:31:19 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 14B7350CE1; Sun, 11 Apr 2021 19:31:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W4yU97Ca6t_n; Sun, 11 Apr 2021 19:31:08 +0200 (CEST) References: <87sg3xec75.fsf@disroot.org> <87k0p9m0d3.fsf@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1618162268; bh=3sNOvlzvt5kLQa8QGIFDxn9MEeHnzDhhvtovpSS/JqM=; h=References:From:To:Cc:Subject:In-reply-to:Date; b=XR28l9aQehYaC7EJmALzkegp2W8qEHv2ep+YTXIKjrSgp2Fxc+LfvHL5JaGk2xm0P F/nuSseO3WoWJ/Df757TYpdHPElQ6vMzuhQxo21qgWBz74DTyV42MGumAdID5R+3q9 ZUpZYQ/ww3cRBY/PTyETDHbN+EfjqHngHRDdLZDoLvpnaY38QmJAXv8APnE9fndpcE 9tPb9tNanaToUW1rr7EqRxcMFy7XtGKNGu6t8Kxy6g9qg8ttusHuCLSNJGmRFnsaNq Id7pwrjMvmWDINqn87KFtpwZuaC8ncuZVGcOFmyaq70ddgu/ViyJCT4zoMh6bFdH+t /eBJ1LDckLZzg== From: Bone Baboon To: Gary Johnson Cc: help-guix@gnu.org Subject: Re: Haskell program build and run using Cabal In-reply-to: <87k0p9m0d3.fsf@disroot.org> Date: Sun, 11 Apr 2021 13:31:03 -0400 Message-ID: <87pmz0enjc.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=bone.baboon@disroot.org; helo=knopi.disroot.org 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, 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: , 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=1618162306; 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=3sNOvlzvt5kLQa8QGIFDxn9MEeHnzDhhvtovpSS/JqM=; b=WGYb9/1oJ/9WLr8yEqYtbAr7gf7h9zTbcExUGQ91YDxjwV4xCGoOjOdNWYg22KX5ow3Wab WpPzlmseQtbbUkyvE04BFsdE3ycYo0JHxb/VZxHq4g5XGaeRu+uVyLwwJpCdsLO5Hrt6Or aW4amrgRH8Td3QMFVFuXEkdMcHEx7EIvWCG9a1f86P25FOBJgkY7lB8dLjnmIBYI016ggI uwlpyuqH40bGisKTclIUGe9KAhsiRvxkRnlnF4d3X6dWq2eNe/A4MV/DIkKCsoYaI5o8AO Q4Sdd05DQB49HARFwcdDykvY9AvTNfTlQEtWh9yOsJP21GhDTTVSiNKT7agLBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618162306; a=rsa-sha256; cv=none; b=oeE3D9iJk7qnU7XfnLyW1SIoee2tIUlYOS2C0PBGvo54hAhpX46I5Nkgv4MfchVDJL7Ple 7TV3ooHkPuuv7AAKH0CBVZ14/cZ0cQOaQqsUnFd0h1trWKnUOoMlj69OGv5xfRJGbqWvab WtOt75o+x3UEU4tMZyThINSzkGFUKsp7h9uGujKgAjUIyRykSeWxoqexCqCh2t6NUTYrIs H5PseJzpEddYyh5XYURitGyRww6+2HBG1FNbhTdGzgXgYLK5+U/sCFrelctxZO+dlwaJDM sET5hZVhZZB1aRep6GrvZ7gxcj6AehfpVVqlDBfdMmlprMYqOjD1DXrQJiLXsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=XR28l9aQ; 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.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=XR28l9aQ; dmarc=pass (policy=quarantine) header.from=disroot.org; 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: BFDB611369 X-Spam-Score: -1.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: ODP7BEC5FuDF Gary Johnson writes: > Guix System (unsurprisingly) has a built-in preference for building > packages with Guix. For building Haskell programs, check out the > `haskell-build-system`, which uses cabal and ghc under the hood. > > Also, if the package you want to install exists on Hackage > (https://hackage.haskell.org) but doesn't have a corresponding Guix > package, you should check out the Guix hackage importer: > > $ guix import hackage -r PACKAGE-NAME@VERSION > > This can auto-generate a Guix package definition for the corresponding > Hackage package that you can then use to install it through Guix. > > Finally, to answer your question about environment variables, you should > stick them in your home directory under your shell configuration script > (e.g., ~/.bashrc, ~/.bash_profile). Thank you for your helpful reply. These are the two lines I added to my `.bashrc` that resolve the error I was getting: ``` unset GHC_PACKAGE_PATH export LD_LIBRARY_PATH=/run/current-system/profile/lib/ ``` Note: The LD_LIBRARY_PATH variables was empty. If it was not I would have appended to the existing LD_LIBRARY_PATH variable.