<div dir="ltr"><div>In terms of using the right section of cabal, in the dev/editor environment you actually need to union of all the cabal targets, so all the various hs-src directories etc are in scope.<br><br></div>Alan<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 21, 2014 at 2:05 PM, Daniel Trstenjak <span dir="ltr"><<a href="mailto:daniel.trstenjak@gmail.com" target="_blank">daniel.trstenjak@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Maxim,<br>
<br>
> I was aware of this hackish vim-script. I even tried to use that but fell into<br>
> lots of corner cases and dropped. It does not handle inter-package<br>
> dependencies, haskell language extensions, different code or sandbox layout.<br>
<br>
It's definitively nice to reuse the information of the cabal file, I<br>
just don't like the coupling of tools that much.<br>
<br>
Also there seems to be duplicate effort for supporting cabal sandboxes in<br>
ghc-mod and hdevtools.<br>
<br>
It would be nice to have a tool that extracts the ghc relevant options<br>
from the cabal file which then could be used by ghc-mod, hdevtools or<br>
any other tool that wants to use ghc in conjunction with cabal.<br>
<br>
Getting the ghc options right you also have to use the right cabal<br>
section (which executable, library, which test suite ...), so a seperate<br>
tool could nicely support this.<br>
<br>
<br>
Greetings,<br>
Daniel<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>