cvs commit: fptools/libraries/Cabal/Distribution/Simple Build.hs
simonmar at microsoft.com
Mon Jan 10 10:01:26 EST 2005
On 10 January 2005 14:56, Ross Paterson wrote:
> On Mon, Jan 10, 2005 at 11:08:29AM -0000, Simon Marlow wrote:
>> What I'm really getting at here (and with some of the other problems
>> I raised recently) is that allowing 1 library + multiple executables
>> in a single package is not the right design, IMO. Especially if the
>> executables depend on the library. This goes back to a previous
>> How about allowing one library *or* multiple executables in a
>> package? That would avoid these problems for now, and we can do the
>> Right Thing later.
> I tend to agree, but are there not similar problems with multiple
> executables that share auxiliary modules? Or would you make
> hs-source-dir and the options fields apply to the whole package?
Multiple executables can share sources, but they should be built with
different -odir/-hidir options so that each module gets built once per
executable. A better way is to put the shared modules into a (hidden)
package and share that, of course.
More information about the Cvs-libraries