[Haskell-cafe] Issues with running Ghci from emacs
semanticphilosopher at googlemail.com
Thu Apr 16 04:08:51 EDT 2009
I end up doing
To set the search directory so that ghci can find the source.
I've not been how to tailor that 'cd' which is run at start up (but
I've not looked to hard)
On 16 Apr 2009, at 04:12, Daryoush Mehrtash wrote:
> I am having problem running GHCI with Haskell files that include
> imports. I am running emacs22 on Ubuntu, with haskell-mode-2.4
> I load my file (Fal.lhs in this case) in emacs. Then try to run the
> Ghci by doing C-c C-l. The result is shown below. Ghci fails
> to find the Draw.lhs which is also on the same directory as the
> Fal.lhs. Note: If I go to the directory where Fal.lhs is and run
> Ghci directly it all works fine. Any idea how I can get the
> interepreter to work form emacs?
> GHCi, version 6.10.1: http://www.haskell.org/ghc/ :? for help
> Loading package ghc-prim ... linking ... done.
> Loading package integer ... linking ... done.
> Loading package base ... linking ... done.
> Prelude> :cd ~/.cabal/
> Prelude> :load "../Documents/haskell/SOE/src/Fal.lhs"
> Could not find module `Draw':
> Use -v to see a list of the files searched for.
> Failed, modules loaded: none.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe