From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Gibbons Subject: How to make sure ghc uses installed packages? Date: Mon, 16 Sep 2019 16:35:14 -0600 Message-ID: <945a039b68fc1bf0582b8eb1feb3fe3909d2000f.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43516) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9zaZ-0001Xd-HG for help-guix@gnu.org; Mon, 16 Sep 2019 18:35:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i9zaY-00028h-3c for help-guix@gnu.org; Mon, 16 Sep 2019 18:35:19 -0400 Received: from mail-io1-xd32.google.com ([2607:f8b0:4864:20::d32]:34695) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i9zaX-00028Q-S4 for help-guix@gnu.org; Mon, 16 Sep 2019 18:35:18 -0400 Received: by mail-io1-xd32.google.com with SMTP id q1so2988354ion.1 for ; Mon, 16 Sep 2019 15:35:17 -0700 (PDT) Received: from piranhaplant.local ([157.201.96.100]) by smtp.googlemail.com with ESMTPSA id i18sm342816ioj.81.2019.09.16.15.35.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 15:35:15 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix mailing list I'm trying Conrad Barski's haskell tutorial[1] but it looks like runhaskell cannot find a few packages that will be necessary in the tutorial. [1]:http://lisperati.com/haskell/ I installed ghc, ghc-random and ghc-regex-compat. I typed up the program as instructed. Then I ran "runhaskell tutorial.hs" and got this output: 2 packages in profile jesse@piranhaplant ~/Documents/haskell$ runhaskell tutorial.hs tutorial.hs:2:1: error: Could not find module ‘Text.Regex’ Perhaps you meant Text.Read (from base-4.12.0.0) Use -v to see a list of the files searched for. | 2 | import Text.Regex | ^^^^^^^^^^^^^^^^^ tutorial.hs:3:1: error: Could not find module ‘System.Random’ Use -v to see a list of the files searched for. | 3 | import System.Random | ^^^^^^^^^^^^^^^^^^^^ I searched hackage and hoogle to find which packages I would need to install, and confirmed I have the correct packages installed, but ghc can't seem to find them. I even changed the version of ghc and logged into a terminal to see if I needed a different version. No difference. Can somebody help me out please?