0

I am trying to install haskell on xubuntu precise for my haskell class and I cant get it to work. I keep getting 'prelude' module is not available and I have spent hours back and forth installing and uninstalling ghc. Can someone please tell me how to get this thing working. :(

3
Contributors
4
Replies
22
Views
3 Years
Discussion Span
Last Post by _kr4t0s_
0

How exactly did you install GHC? Did you install anything Haskell-related other than the main GHC package? And what's the exact error message you're getting?

0

Well I tried:
sudo apt-get install ghc
sudo apt-get install haskell-platform
So I thought well I am in, I make a hello.hs folder and try to compile it and i get

kratos@Scylla:~$ runhaskell /hello.hs
ghc: panic! (the 'impossible' happened)
  (GHC version 7.6.3 for i386-unknown-linux):
    interactiveUI:setBuffering2

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

kratos@Scylla:~$ ghc -o hello hello.hs

Or when I try ghc -o hello hello.hs I get this:

kratos@Scylla:~/Documents$ ghc -o hello hello.hs

hello.hs:1:1:
    Could not find module `Prelude'
    Use -v to see a list of the files searched for.

So the problem seems to be the 'Prelude' module which I am still googling like crazy and cant seem to find it

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.