Hmm, strange. This doesn'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"><<a href="mailto:bugfact@gmail.com">bugfact@gmail.com</a>></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>";; Not sure if it's useful/needed and if it actually works."</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"><<a href="mailto:miguelimo38@yandex.ru" target="_blank">miguelimo38@yandex.ru</a>></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've had the same problem. Commenting out lines<br>
<br>
(unless (equal default-directory root)<br>
(setq default-directory root)<br>
(inferior-haskell-send-command<br>
proc (concat ":cd " 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, ':load'ing main.hs would fail to find the imported files. The only thing I appear to be able to :load is files that don't import from local directories.<br>
<br>
2009/1/22 Peter Verswyvelen <<a href="mailto:bugfact@gmail.com" target="_blank">bugfact@gmail.com</a>><br>
I have a silly problem.<br>
<br>
I'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 "src/main.hs"<br>
<br>
But of course GHCi won'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 "main.hs"<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>