cvs commit: fptools/libraries/Cabal/Distribution Simple.hs fptools/libraries/Cabal/Distribution/Simple Register.hs fptools/libraries/Cabal/tests ModuleTest.hs Tests.mk fptools/libraries/Cabal/tests/withHooks Setup.buildinfo.in

ross at soi.city.ac.uk ross at soi.city.ac.uk
Wed Feb 16 04:51:21 EST 2005


Looking at the tests, I see I'm confused about the Main-Is field.
I thought it was the name of the file containing the Main module,
and that Other-Modules listed, um, other modules.  (That's what
the spec suggested, and what buildHugs does.)  But then I see

Executable: testB
Other-Modules: B.A, B.MainB
Main-is: B/MainB.hs

and I see that buildGHC ignores the Main-Is (modulePath) field.
I don't think that's right.  Apart from avoiding redundancy,
using Main-Is means the filename doesn't have to look like a
module name.


More information about the Cvs-libraries mailing list