<div dir="ltr">Keep in mind that this is experimental software, so there may be rough edges.<br><br>The code I linked to is not on master, only on a topic branch In order to build it:<br><br> git clone --branch exe-targets-3229 --depth=1 <a href="https://github.com/commercialhaskell/stack">https://github.com/commercialhaskell/stack</a><div> cd stack</div><div> stack install<br></div><div><br></div><div>Then make sure that you have $HOME/.local/bin on your PATH, or copy the generated executable to wherever your stack executable currently resides. If you have problems with the new version, you can revert with:</div><div><br></div><div> stack upgrade --binary-version 1.4.0</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 13, 2017 at 7:32 AM, 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">Sorry if this is a basic question, but I've never tried to download and build a Haskell project before. I've only used Haskell for small local projects. So I'm guessing I need to get the latest source code for Stack and build it in order to incorporate this feature?<div><br></div><div>I did try getting the source code from GitHub, but I don't know how to build it.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>D</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 12, 2017 at 3:52 AM, Michael Snoyman <span dir="ltr"><<a href="mailto:michael@snoyman.com" target="_blank">michael@snoyman.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 think you'll be happy about this PR:<div><br></div><div><a href="https://github.com/commercialhaskell/stack/pull/3237" target="_blank">https://github.com/commercialh<wbr>askell/stack/pull/3237</a><br></div></div><div class="m_3288479028279360382HOEnZb"><div class="m_3288479028279360382h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 12, 2017 at 10:24 AM, 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">--package seems to work.<div><br></div><div>But this brings up another question. This takes a long time to run for a change to a single file, because stack is preprocessing and building *all* my executables, then installing them all. In my situation this is a lot of wasted time for something that needs to be fast.</div><div><br></div><div>It's not just "stack ghc." I tried to get "stack build" to build a specific executable. I tried something like "stack build cac:myExec" (my package name is "cac") but this builds all my executables every time. I haven't been able to find the right approach to this in the docs.</div><div><br></div><div>So, aside from wondering why "stack ghc" builds all my executables, how do I use "stack build" to build just one executable?</div><span class="m_3288479028279360382m_-4452002025068985789HOEnZb"><font color="#888888"><div><br></div><div>D</div><div><br></div></font></span></div><div class="m_3288479028279360382m_-4452002025068985789HOEnZb"><div class="m_3288479028279360382m_-4452002025068985789h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 11, 2017 at 7:41 PM, Michael Snoyman <span dir="ltr"><<a href="mailto:michael@snoyman.com" target="_blank">michael@snoyman.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">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"><div><div class="m_3288479028279360382m_-4452002025068985789m_6271622913727911020h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_3288479028279360382m_-4452002025068985789m_6271622913727911020h5"><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="m_3288479028279360382m_-4452002025068985789m_6271622913727911020m_4155542023747574234HOEnZb"><font color="#888888"><div><br></div><div>D</div><div><br></div></font></span></div>
<br></div></div>______________________________<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-bi<wbr>n/mailman/listinfo/haskell-caf<wbr>e</a><br>
Only members subscribed via the mailman list are allowed to post.<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>