<div dir="ltr">No, the `ghc` command has no rebuild logic built in, since it doesn't know which of your packages you're expecting to be available. You can pass in the `--package` flag, however, to tell it which packages you're expecting. I'm not sure if I've ever tested in the exact case you're trying, so you may have to resort to `stack build` in the directory, but `--package` is worth a shot.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 11, 2017 at 11:29 PM, Dennis Raddle <span dir="ltr"><<a href="mailto:dennis.raddle@gmail.com" target="_blank">dennis.raddle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm using Haskell stack in the normal way (i.e. "stack build", "stack exec") for most of my application. However, I also need to build files that aren't in the stack source tree. <div><br></div><div>My stack source tree is at ~/stack/cac/src/</div><div><br></div><div>Let's say I want to build the program /Users/Dennis/test.hs.</div><div><br></div><div>So far I have been using<div><br></div><div>   stack ghc --stack-yaml ~/stack/cac/stack.yaml -- --make /Users/Dennis/test.hs</div></div><div><br></div><div>I am confused. I thought this was working until today. I made some modifications in various places, including to my cac.cabal (but NOT my stack.yaml) and I'm having a problem. The libraries that test.hs imports are not getting rebuilt when they change.</div><div><br></div><div>Are they *supposed* to be rebuilt? Any ideas how to debug this?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>D</div><div><br></div></font></span></div>
<br>______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.<br></blockquote></div><br></div>