is there, by chance, a file named Prelude.hs in the working directory? (the directory you are in when you type ghci?)<div><br></div><div>- jeremy<br><br><div class="gmail_quote">On Mon, Mar 1, 2010 at 11:43 AM, Josef Svenningsson <span dir="ltr">&lt;<a href="mailto:josef.svenningsson@gmail.com">josef.svenningsson@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
It seems I&#39;ve been able to mess up my ghc installation pretty badly.<br>
Here is what happens if I just try to invoke ghci from the prompt:<br>
<br>
$ ghci<br>
GHCi, version 6.10.4: <a href="http://www.haskell.org/ghc/" target="_blank">http://www.haskell.org/ghc/</a>  :? for help<br>
Loading package ghc-prim ... linking ... done.<br>
Loading package integer ... linking ... done.<br>
Loading package base ... linking ... done.<br>
&lt;command line&gt;: module `Prelude&#39; is not loaded<br>
$<br>
<br>
I have no idea what I did to end up in this situation. What I&#39;ve been<br>
doing lately is reinstalling some packages. I also have another ghc<br>
installed but it&#39;s at a completely different place in the file system.<br>
The only thing I can think of is if cabal managed to somehow confuse<br>
the two ghcs and wrote some data in the wrong place.<br>
<br>
What I really would like to know is if there is a simple way to fix<br>
this without completely reinstalling ghc with all the libraries I have<br>
installed. Has anyone else experienced anything similar?<br>
<br>
If this is a potential bug I&#39;d be happy to provide any data that might<br>
help track it down.<br>
<br>
Cheers,<br>
<br>
Josef<br>
_______________________________________________<br>
Glasgow-haskell-users mailing list<br>
<a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
</blockquote></div><br></div>