
20 Jan
2009
20 Jan
'09
3:30 p.m.
2009/1/20 Alistair Bayley
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