cabal beginner issues (other-modules, build-depends)
Simon Marlow
simonmar at microsoft.com
Fri Sep 23 06:32:51 EDT 2005
On 23 September 2005 10:47, Ross Paterson wrote:
> On Fri, Sep 23, 2005 at 10:37:52AM +0100, Simon Marlow wrote:
>> On 23 September 2005 10:20, Ross Paterson wrote:
>>> Module dependency calculation would have to be done in the build
>>> environment, not at the source, because the set of modules used may
>>> be system-dependent. And you'd still need to specify
>>> exposed-modules.
>>
>> Yes, that's what I had in mind. The calculation of other-modules
>> would happen when .installed-pkg-info is generated.
>
> I forgot extra-source-files, which is needed in the source system and
> has to include all the files not mentioned elsewhere that might be
> needed
> on any build system. Without other-modules you'd need it more often,
> and it would be harder to compute.
So let's do the second best thing, and automatically check the value of
the other-modules field if appropriate tools are available (GHC or
hmake).
Cheers,
Simon
More information about the Libraries
mailing list