Main-Is not creating executable
alistair at abayley.org
Tue Jan 20 15:30:45 EST 2009
2009/1/20 Alistair Bayley <alistair at abayley.org>:
> 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?
More information about the Libraries