On Thu, Aug 27, 2009 at 11:44 AM, Thomas Schilling<[email protected]> wrote: > On 27 Aug 2009, at 09:17, Johan Tibell wrote: >> Also, I tried to play with the scion-open-cabal-project function. I'm >> not sure I understand how it's intended to be used. Does it make sure >> that if you compile a file using C-c C-x C-l the right source >> directories are used? Could you give a usage example? > > I eventually want to get rid of it and let scion-load figure out itself when > the project needs to be reconfigured. At the moment you have to delete the > .dist-scion directory if you changed your .cabal file. :/
My question was probably a bit unclear so let me try to clarify it. What's the purpose of scion-open-cabal-project? Does it set the include path used for subsequent scion-loads? What's the ".dist-scion" directory and how does it differ from the normal "dist" directory? >> One problem I frequently have with emacs-mode is that you can't use it >> to load a file if >> >> * your sources don't live in the same directory as the Cabal file, or > > Actually, the latest version of haskell-mode has some heuristics. It sets > the working directory to where the .cabal file lives. Right. I meant if I don't root my source files in the same directory as the Cabal file it won't work. Cheers, Johan _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
