[Haskell-cafe] Re: cabal, haddock, hscolour

Henning Thielemann schlepptop at henning-thielemann.de
Thu Aug 19 08:37:17 EDT 2010


Ivan Lazar Miljenovic schrieb:
> Johannes Waldmann <waldmann at imn.htwk-leipzig.de> writes:
> 
>> Duncan Coutts <duncan.coutts <at> googlemail.com> writes:
>>
>>> Your .cabal file probably does not list the "other-modules" as it
>>> should, so Cabal does not know that the other modules exist.
>> Ah. 
>>
>> Strange though that it seems to be able to do lots
>> of reasonable things (build the executable, build all the API docs)
>> without this "other-modules" section.
> 
> The executable bit cheats: since it just calls "ghc --make Main.hs", GHC
> will bring in all the other modules.  However, I don't think in general
> that those other modules will be included into the tarball in question
> since Cabal doesn't know to include them.

On "cabal install" GHC will only install object files of modules that
are explicitly listed. This will not lead to errors when compiling
dependent libraries, but when linking dependent executables.



More information about the Haskell-Cafe mailing list