all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jesse Gibbons <jgibbons2357@gmail.com>
To: help-guix mailing list <help-guix@gnu.org>
Subject: How to make sure ghc uses installed packages?
Date: Mon, 16 Sep 2019 16:35:14 -0600	[thread overview]
Message-ID: <945a039b68fc1bf0582b8eb1feb3fe3909d2000f.camel@gmail.com> (raw)

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?

             reply	other threads:[~2019-09-16 22:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-16 22:35 Jesse Gibbons [this message]
2019-09-17  0:00 ` How to make sure ghc uses installed packages? John Soo
2019-09-17  1:28   ` Jesse Gibbons
2019-09-17  5:27     ` John Soo
2019-09-17 12:36       ` Jesse Gibbons
2019-09-17 14:09         ` John Soo
2019-09-17 18:21           ` Timothy Sample
2019-09-17 19:33             ` John Soo

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=945a039b68fc1bf0582b8eb1feb3fe3909d2000f.camel@gmail.com \
    --to=jgibbons2357@gmail.com \
    --cc=help-guix@gnu.org \
    /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.