<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Volker,<br></div><div><br></div><div>If you don't mention all modules in your Cabal file you may well get some very confusing linker errors later on when you build an executable, or try to use your library in another component. See <a href="https://stackoverflow.com/questions/28857275/cabal-test-fails-to-link-its-own-objects">https://stackoverflow.com/questions/28857275/cabal-test-fails-to-link-its-own-objects</a> for one such example of the very cryptic error you'll likely eventually run into!<br></div><div><br></div><div>Ollie<br></div><div><br></div><div>On Fri, 16 Sep 2022, at 9:47 AM, Volker Wysk wrote:<br></div><blockquote type="cite" id="qt" style=""><div>Hi<br></div><div><br></div><div>The cabal user guide says (in section 6.2.12): "Every module in the package<br></div><div>must be listed in one of other-modules, library:exposed-modules or<br></div><div>executable:main-is fields."<br></div><div><br></div><div>However, I only get a warning message, when I comment out the other-modules<br></div><div>field in my .cabal file. The program compiles. This is the message:<br></div><div><br></div><div><no location info>: warning: [-Wmissing-home-modules]<br></div><div>    These modules are needed for compilation but not listed in your .cabal <br></div><div>    file's other-modules: <br></div><div>        Hsskripte Sicherung SicherungAktionen Text Wahl Zeit<br></div><div><br></div><div>Is it really necessary to specify all the imported modules? If so, why does<br></div><div>the program compile? Can that warning message be turned off?<br></div><div><br></div><div>Apart from that, I'm happy with cabal.   :-)<br></div><div><br></div><div>Cheers,<br></div><div>Volker<br></div><div>_______________________________________________<br></div><div>Haskell-Cafe mailing list<br></div><div>To (un)subscribe, modify options or view archives go to:<br></div><div><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br></div><div>Only members subscribed via the mailman list are allowed to post.<br></div></blockquote><div><br></div></body></html>