all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to make sure ghc uses installed packages?
@ 2019-09-16 22:35 Jesse Gibbons
  2019-09-17  0:00 ` John Soo
  0 siblings, 1 reply; 8+ messages in thread
From: Jesse Gibbons @ 2019-09-16 22:35 UTC (permalink / raw)
  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?

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-09-17 19:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-16 22:35 How to make sure ghc uses installed packages? Jesse Gibbons
2019-09-17  0:00 ` 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

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.