2009/1/20 Alistair Bayley <[email protected]>: > I have this in Takusen.cabal: > > Executable miniunit_tests > Main-Is: Test/MiniUnit/Main.hs > Build-Depends: base, mtl > Extensions: CPP > CPP-Options: "-DNEW_EXCEPTION" > > (as well as the Library section). When it builds, the modules compile > fine, but then I get: > > Warning: output was redirected with -o, but no output will be > generated because there is no Main module.
My fault. Turns out the module in Test/MiniUnit/Main.hs must be just Main, not Test.MiniUnit.Main i.e. module Main where... But the second question still stands: can I selectively build the various targets in the .cabal file? Alistair _______________________________________________ cabal-devel mailing list [email protected] http://www.haskell.org/mailman/listinfo/cabal-devel
