I accidentally the Prelude

Jeremy Shaw jeremy at n-heptane.com
Mon Mar 1 17:54:18 EST 2010


is there, by chance, a file named Prelude.hs in the working directory? (the
directory you are in when you type ghci?)

- jeremy

On Mon, Mar 1, 2010 at 11:43 AM, Josef Svenningsson <
josef.svenningsson at gmail.com> wrote:

> Hi,
>
> It seems I've been able to mess up my ghc installation pretty badly.
> Here is what happens if I just try to invoke ghci from the prompt:
>
> $ ghci
> GHCi, version 6.10.4: http://www.haskell.org/ghc/  :? for help
> Loading package ghc-prim ... linking ... done.
> Loading package integer ... linking ... done.
> Loading package base ... linking ... done.
> <command line>: module `Prelude' is not loaded
> $
>
> I have no idea what I did to end up in this situation. What I've been
> doing lately is reinstalling some packages. I also have another ghc
> installed but it's at a completely different place in the file system.
> The only thing I can think of is if cabal managed to somehow confuse
> the two ghcs and wrote some data in the wrong place.
>
> What I really would like to know is if there is a simple way to fix
> this without completely reinstalling ghc with all the libraries I have
> installed. Has anyone else experienced anything similar?
>
> If this is a potential bug I'd be happy to provide any data that might
> help track it down.
>
> Cheers,
>
> Josef
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20100301/76e30612/attachment.html


More information about the Glasgow-haskell-users mailing list