<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I would like to include a few source files<br>
as &#39;executable&#39; sections in a .cabal package<br>
description. However, although I do want to<br>
use main=mainDefault features, I do not want<br>
those packages to be installed when I run<br>
&#39;Setup.hs install&#39;.<br>
<br>
</blockquote>
<br></div><div class="Ih2E3d">
Yes, just use this in the executable section:<br>
<br>
buildable: False<br>
<br>
</div></blockquote>
<br>
But I do want it to be built (so Setup will<br>
check dependencies, allow me to &#39;./Setup clean&#39;<br>
etc.). However, I would like &#39;./Setup install&#39;<br>
to install just the main library.<br></blockquote></div><br>Just in case my response to you (in a previous thread that you started) wasn&#39;t clear, EMGM also provides an example of this feature. See the Cabal configuration file.<br>
<br>&nbsp; <a href="http://hackage.haskell.org/packages/archive/emgm/0.1/emgm.cabal">http://hackage.haskell.org/packages/archive/emgm/0.1/emgm.cabal</a><br><br>Follow the use of the &#39;test&#39; flag in that file. By running &quot;./Setup configure&quot; with no flags, &#39;test&#39; is False. When you run &quot;./Setup configure -ftest&quot;, &#39;test&#39; is true. Look for the use of &#39;buildable&#39; w.r.t. &#39;test&#39;.<br>
<br>Regards,<br>Sean<br>