[Haskell-cafe] Issues with running Ghci from emacs

Neil Davies semanticphilosopher at googlemail.com
Thu Apr 16 04:08:51 EDT 2009


I end up doing

  :set -i../Documents/haskell/SOE/src

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)

Neil


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  
> extensions.
>
> 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"
>
> ../Documents/haskell/SOE/src/Fal.lhs:76:9:
>     Could not find module `Draw':
>       Use -v to see a list of the files searched for.
> Failed, modules loaded: none.
> Prelude>
>
> Thanks,
>
> Daryoush
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090416/6a5a7508/attachment.htm


More information about the Haskell-Cafe mailing list