<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I end up doing<div><br></div><div>&nbsp;:set -i../Documents/haskell/SOE/src</div><div><br></div><div>To set the search directory so that ghci can find the source.</div><div><br></div><div>I've not been how to tailor that 'cd' which is run at start up (but I've not looked to hard)</div><div><br></div><div>Neil</div><div><br></div><div><br><div><div>On 16 Apr 2009, at 04:12, Daryoush Mehrtash wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br>I am having problem running GHCI with Haskell files that include imports.&nbsp;&nbsp;&nbsp; I am running emacs22 on Ubuntu,&nbsp; with haskell-mode-2.4 extensions.&nbsp;&nbsp; <br><br>I load my file (Fal.lhs in this case) in emacs.&nbsp; Then try to run the Ghci by doing C-c C-l.&nbsp;&nbsp;&nbsp;&nbsp; The result is shown below.&nbsp;&nbsp; Ghci fails to find the Draw.lhs which is also on the same directory as the Fal.lhs.&nbsp;&nbsp; Note:&nbsp; If I go to the directory where Fal.lhs is and run Ghci directly it all works fine.&nbsp;&nbsp; Any idea how I can get the interepreter to work form emacs?<br> <br clear="all"><div style="margin-left: 40px;">GHCi, version 6.10.1: <a href="http://www.haskell.org/ghc/">http://www.haskell.org/ghc/</a>&nbsp; :? for help<br>Loading package ghc-prim ... linking ... done.<br>Loading package integer ... linking ... done.<br> Loading package base ... linking ... done.<br><b>Prelude> :cd ~/.cabal/<br>Prelude> :load "../Documents/haskell/SOE/src/Fal.lhs"<br></b><br>../Documents/haskell/SOE/src/Fal.lhs:76:9:<br>&nbsp;&nbsp;&nbsp; Could not find module `Draw':<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Use -v to see a list of the files searched for.<br>Failed, modules loaded: none.<br>Prelude> <br></div><br>Thanks,<br><br>Daryoush<br><br> _______________________________________________<br>Haskell-Cafe mailing list<br><a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>http://www.haskell.org/mailman/listinfo/haskell-cafe<br></blockquote></div><br></div></body></html>