[Haskell-cafe] Haskell mode for Emacs question

Peter Verswyvelen bugfact at gmail.com
Thu Jan 22 12:17:38 EST 2009


I have a silly problem.
I'm using Emacs with the Haskell mode extension on Windows

I have a source file in say

c:/foo/src/main.hs

main.hs is importing some other modules in that same src directory

When I invoke GHCi from within Emacs, the first thing it does is

:cd c:/foo

and then

:load "src/main.hs"

But of course GHCi won't find the imported modules now, since the current
directory is wrong.

If I type in GHCi

:cd src
:load "main.hs"

then it compiles fine.

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?

Thanks a lot,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090122/54b0dc13/attachment.htm


More information about the Haskell-Cafe mailing list