<div dir="ltr">Did you run it multiple times and get that output? Also you usually want stack build.<div><br></div><div>My work projects use Stack and it'll *only* build my current project when I run stack build (and be fairly fast) unless I changed the source, a cabal file, or a stack.yaml.</div><div><br></div><div>If you did run it multiple times and got that output, is something touching those directories between builds?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 24, 2015 at 4:38 PM, Corentin Dupont <span dir="ltr"><<a href="mailto:corentin.dupont@gmail.com" target="_blank">corentin.dupont@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"><div><div><div>i tried, but the time is still around 1m20s.<br></div>The syntax is:<br><br><span style="font-family:monospace,monospace">packages:<br>- '.'<br>- location: ../Nomyx-Core<br>  extra-dep: true<br>- location: ../Nomyx-Language<br>  extra-dep: true<br>- location: ../Nomyx-Web<br>  extra-dep: true</span><br><br></div>Right?<br></div>It spends a lot of time apparently recompiling dependencies:<br><br><div><span style="font-family:monospace,monospace">$ stack install<br>Nomyx-Core-0.7.6-30a37de35e61a9979fabc74d548ee6e6: unregistering<br>Nomyx-Language-0.7.6-06bfc13bf2ab48163968e23e340be801: unregistering<br>Nomyx-Web-0.7.6-b75419b3b0faacbe02c94176b84e0564: unregistering<br>Nomyx-Language-0.7.6: build<br>Nomyx-Language-0.7.6: install<br>Nomyx-Core-0.7.6: build<br>Nomyx-Core-0.7.6: install<br>Nomyx-Web-0.7.6: build<br>Nomyx-Web-0.7.6: install<br>Nomyx-0.7.6: build<br>Building Nomyx-0.7.6...<br>Preprocessing executable 'Nomyx' for Nomyx-0.7.6...<br>Linking .stack-work/dist/x86_64-linux/Cabal-1.18.1.5/build/Nomyx/Nomyx ...<br>Nomyx-0.7.6: install<br>Installing executable(s) in<br>/home/cdupont/Dropbox/Nomyx/Nomyx/.stack-work/install/x86_64-linux/lts-2.19/7.8.4/bin<br>Completed all 4 actions.<br>Copying from /home/cdupont/Dropbox/Nomyx/Nomyx/.stack-work/install/x86_64-linux/lts-2.19/7.8.4/bin/Nomyx to /home/cdupont/.local/bin/Nomyx<br><br>Installed executables to /home/cdupont/.local/bin/:<br>- Nomyx</span><br><br><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 24, 2015 at 11:16 PM, Christopher Allen <span dir="ltr"><<a href="mailto:cma@bitemyapp.com" target="_blank">cma@bitemyapp.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">You need to specify extra-deps: true for Nomyx-* if you to cache the build results and treat them like dependencies rather than core parts of your project.</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 24, 2015 at 4:15 PM, Corentin Dupont <span dir="ltr"><<a href="mailto:corentin.dupont@gmail.com" target="_blank">corentin.dupont@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"><div>My stack.yaml is like that:<br><br><span style="font-family:monospace,monospace">flags: {}<br>packages:<br>- '.'<br>- ../Nomyx-Core<br>- ../Nomyx-Language<br>- ../Nomyx-Web<br>extra-deps:<br>- Nomyx-Core-0.7.6<br>- Nomyx-Language-0.7.6<br>- Nomyx-Web-0.7.6<br>- hint-server-1.4.2<br>- DebugTraceHelpers-0.12<br>- acid-state-0.12.4<br>- either-unwrap-1.1<br>- eprocess-1.7.2<br>- happstack-authenticate-2.1.4<br>- reform-0.2.7<br>- reform-blaze-0.2.4<br>- reform-happstack-0.2.5<br>- time-recurrence-0.9.2<br>- web-routes-0.27.9<br>- web-routes-happstack-0.23.9<br>- web-routes-regular-0.19.0<br>- web-routes-th-0.22.3<br>- boomerang-1.4.5<br>- data-ordlist-0.4.7.0<br>- happstack-hsp-7.3.5<br>- happstack-jmacro-7.0.10<br>- hsp-0.10.0<br>- hsx-jmacro-7.3.6<br>- hsx2hs-0.13.3.2<br>- ixset-typed-0.3<br>- jwt-0.6.0<br>- pwstore-purehaskell-2.1.4<br>- web-routes-boomerang-0.28.4<br>- web-routes-hsp-0.24.6<br>- harp-0.4.1<br>resolver: lts-2.19</span><br><br></div>Is that correct?<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 24, 2015 at 10:54 PM, Christopher Allen <span dir="ltr"><<a href="mailto:cma@bitemyapp.com" target="_blank">cma@bitemyapp.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">Do you have additional packages other than '.' specified in your stack.yaml? If so, are they specified with extra-dep: true or extra-dep: false or not specified at all?</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, Aug 24, 2015 at 3:44 PM, Corentin Dupont <span dir="ltr"><<a href="mailto:corentin.dupont@gmail.com" target="_blank">corentin.dupont@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><div dir="ltr"><div><div><div><div><div><div>Hi guys,<br></div>I have an application with around 7K loc in 4 packages. It takes 1min30 to compile with stack.<br></div>Is it a normal compilation time?<br></div>My computer is fairly recent with Intel i7... I run some music in background :).<br></div>Is there some statistics about compilation time somewhere?<br></div>Thanks.<span><font color="#888888"><br></font></span></div><span><font color="#888888">Corentin<br></font></span></div>
<br></div></div>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Chris Allen<br><div><span style="font-size:12.8000001907349px">Currently working on </span><a href="http://haskellbook.com" target="_blank">http://haskellbook.com</a></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Chris Allen<br><div><span style="font-size:12.8000001907349px">Currently working on </span><a href="http://haskellbook.com" target="_blank">http://haskellbook.com</a></div></div></div></div></div></div>
</div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Chris Allen<br><div><span style="font-size:12.8000001907349px">Currently working on </span><a href="http://haskellbook.com" target="_blank">http://haskellbook.com</a></div></div></div></div></div></div>
</div>