I would still vote for that error in the &#39;worst ghc error message contest&#39;. I got it just last night with 6.13 when I tried to run the Setup.hs function in base:<div><br></div><div><div>~/n-heptane/projects/haskell/darcs/base-3.0.3.2 $ rm Setup.o Setup.hi</div>
<div>~/n-heptane/projects/haskell/darcs/base-3.0.3.2 $ ghc --make -O2 Setup.hs -o s</div><div>[1 of 1] Compiling Main             ( Setup.hs, Setup.o )</div><div><br></div><div>Setup.hs:1:1:</div><div>    attempting to use module `Prelude&#39; (./Prelude.hs) which is not loaded</div>
<div>~/n-heptane/projects/haskell/darcs/base-3.0.3.2 $ runhaskell Setup.hs configure</div><div><br></div><div>Setup.hs:1:1:</div><div>    attempting to use module `Prelude&#39; (./Prelude.hs) which is not loaded</div><div>
~/n-heptane/projects/haskell/darcs/base-3.0.3.2 $ </div><div><br></div><div>In this case it does at least mention the path to the troublesome file. But I still have no idea why it is not loaded** (In this particular case I don&#39;t want it loaded. Though I believe there are other similar situations where I do..)</div>
<div><br></div><div>** well, from experience I know that it is &#39;not loaded&#39; because it can&#39;t decide if it should load the source, or use the version installed in the package library. But the first time I saw the message, I was quite confused. But, perhaps there are other cases when this error can occur? </div>
<div><br></div><div>- jeremy</div><br><div class="gmail_quote">On Tue, Mar 2, 2010 at 5:21 AM, Simon Marlow <span dir="ltr">&lt;<a href="mailto:marlowsd@gmail.com">marlowsd@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;">
<div class="im">On 02/03/2010 08:59, Josef Svenningsson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, Mar 1, 2010 at 11:54 PM, Jeremy Shaw&lt;<a href="mailto:jeremy@n-heptane.com" target="_blank">jeremy@n-heptane.com</a>&gt;  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
is there, by chance, a file named Prelude.hs in the working directory? (the<br>
directory you are in when you type ghci?)<br>
- jeremy<br>
<br>
</blockquote>
Ah. Thanks! That was indeed the problem.<br>
<br>
Though I think ghci:s response could be a little bit more transparent.<br>
</blockquote>
<br></div>
Sure, how about this:<br>
<br>
$ touch Prelude.hs<br>
$ ghci<br>
GHCi, version 6.12.1: <a href="http://www.haskell.org/ghc/" target="_blank">http://www.haskell.org/ghc/</a>  :? for help<div class="im"><br>
Loading package ghc-prim ... linking ... done.<br></div>
Loading package integer-gmp ... linking ... done.<div class="im"><br>
Loading package base ... linking ... done.<br></div>
Loading package ffi-1.0 ... linking ... done.<br>
Prelude&gt;<br>
<br>
ie. with 6.12.1 it just works.<br>
<br>
Cheers,<br><font color="#888888">
        Simon<br>
</font></blockquote></div><br></div>