I have a silly problem.<div><br></div><div>I'm using Emacs with the Haskell mode extension on Windows </div><div><br></div><div>I have a source file in say </div><div><br></div><div>c:/foo/src/main.hs</div><div><br></div>
<div>main.hs is importing some other modules in that same src directory</div>
<div><br></div><div>When I invoke GHCi from within Emacs, the first thing it does is</div><div><br></div><div>:cd c:/foo</div><div><br></div><div>and then</div><div><br></div><div>:load "src/main.hs"</div><div>
<br>
</div><div>But of course GHCi won't find the imported modules now, since the current directory is wrong.</div><div><br></div><div>If I type in GHCi</div><div><br></div><div>:cd src</div><div>:load "main.hs"</div>
<div><br></div><div>then it compiles fine.</div><div><br></div><div>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?</div><div>
<br></div><div>Thanks a lot,</div><div>Peter</div><div><br></div>