<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 'executable' 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>
'Setup.hs install'.<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 './Setup clean'<br>
etc.). However, I would like './Setup install'<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't clear, EMGM also provides an example of this feature. See the Cabal configuration file.<br>
<br> <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 'test' flag in that file. By running "./Setup configure" with no flags, 'test' is False. When you run "./Setup configure -ftest", 'test' is true. Look for the use of 'buildable' w.r.t. 'test'.<br>
<br>Regards,<br>Sean<br>