I think this is just the way it works currently, since cabal only tracks the installed package and version, but not if profiling was enabled. I always have my ~/.cabal/config set to install profiling libraries to avoid this problem. That doesn&#39;t help you now though. The easiest thing to do is probably to remove your sandbox and start from a blank slate.<br>

<br>Erik<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 6, 2012 at 7:48 PM, Mike Craig <span dir="ltr">&lt;<a href="mailto:mkscrg@gmail.com" target="_blank">mkscrg@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi all,</div><div><br></div><div>So I&#39;ve been working on a project and I&#39;d like to run it with profiling to diagnose the performance hotspots. It&#39;s a cabal project and I&#39;ve been using cabal-dev for sandboxing. Normally I would just run `cabal-dev install` to get everything built and the executables &quot;installed&quot; in ./cabal-dev/bin. Since I want to compile with profiling, I tried this:</div>



<div><br></div><div>$ cabal-dev install enable-executable-profiling</div><div><br></div><div>The build fails with an error log that includes something like &quot;Perhaps you haven&#39;t installed the profiling libraries for package `http-types-0.7.3.0.1&#39;?&quot; If I then try ...</div>



<div><br></div><div>$ cabal-dev install -p --reinstall --force-reinstalls http-types-0.7.3.0.1</div><div><br></div><div>... I find myself walking down the dependency tree. (http-types -&gt; case-insensitive -&gt; hashable -&gt; etc.) Presumably this would eventually walk me out of the sandbox and I would be reinstalling the base libraries in my sandbox with profiling enabled.</div>



<div><br></div><div>This doesn&#39;t seem right. (And if it is right, it doesn&#39;t seem like I should have to do it manually, package by package.) What am I doing wrong?</div><div><br></div>Cheers,<br clear="all">Mike<br>




<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>
<br></blockquote></div><br></div>