Hmm, strange. This doesn&#39;t appear to fix my problem. Perhaps I have something bigger broken locally :(<br><br><div class="gmail_quote">On Thu, Jan 22, 2009 at 12:44 PM, Peter Verswyvelen <span dir="ltr">&lt;<a href="mailto:bugfact@gmail.com">bugfact@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;">indeed, that works! the comment above those lines is:<div><br></div><div>&quot;;; Not sure if it&#39;s useful/needed and if it actually works.&quot;</div>
<div><br></div><div>:-)</div><div><div></div><div class="Wj3C7c"><div><br></div><div><div class="gmail_quote">
On Thu, Jan 22, 2009 at 6:41 PM, Miguel Mitrofanov <span dir="ltr">&lt;<a href="mailto:miguelimo38@yandex.ru" target="_blank">miguelimo38@yandex.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On my Mac I&#39;ve had the same problem. Commenting out lines<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(unless (equal default-directory root)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(setq default-directory root)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(inferior-haskell-send-command<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proc (concat &quot;:cd &quot; default-directory)))<br>
<br>
solved it for me.<div><div></div><div><br>
<br>
<br>
On 22 Jan 2009, at 20:23, Andrew Wagner wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Interesting. I have a similar, but worse problem. For me, &#39;:load&#39;ing main.hs would fail to find the imported files. The only thing I appear to be able to :load is files that don&#39;t import from local directories.<br>


<br>
2009/1/22 Peter Verswyvelen &lt;<a href="mailto:bugfact@gmail.com" target="_blank">bugfact@gmail.com</a>&gt;<br>
I have a silly problem.<br>
<br>
I&#39;m using Emacs with the Haskell mode extension on Windows<br>
<br>
I have a source file in say<br>
<br>
c:/foo/src/main.hs<br>
<br>
main.hs is importing some other modules in that same src directory<br>
<br>
When I invoke GHCi from within Emacs, the first thing it does is<br>
<br>
:cd c:/foo<br>
<br>
and then<br>
<br>
:load &quot;src/main.hs&quot;<br>
<br>
But of course GHCi won&#39;t find the imported modules now, since the current directory is wrong.<br>
<br>
If I type in GHCi<br>
<br>
:cd src<br>
:load &quot;main.hs&quot;<br>
<br>
then it compiles fine.<br>
<br>
Does anyone have an idea why Emacs or the Haskell mode is switching to the parent directory of src instead of src itself, and how to fix this?<br>
<br>
Thanks a lot,<br>
Peter<br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br>