[Haskell-cafe] cabal: other-modules

Malcolm Wallace malcolm.wallace at cs.york.ac.uk
Thu Apr 15 07:11:45 EDT 2010

On 15 Apr 2010, at 08:24, Johannes Waldmann wrote:

> What is the purpose of the "Other-Modules" section in a cabal file?
> (I.e., can we drop it?)
> If it's just the set of dependencies of the "Exported-Modules",
> then a reasonable build system should be able to figure this out on  
> its own.

It is not used by the build system.  It is used by 'cabal sdist' to  
build a distribution package that contains everything needed.  If a  
file is not listed in the .cabal file, it will not end up in the  
tarball.  Cabal has no dependency analysis to help discover un-listed  


More information about the Haskell-Cafe mailing list