[Haskell-cafe] Cabal package with library and tests

Mauricio briqueabraque at yahoo.com
Wed Oct 15 16:13:09 EDT 2008


Hi,

I'm writing a Cabal package, using main=defaultMain
in Setup.hs. It has a library, and I want to also
build a few executables so I can test the library.
How am I supposed to do that? My attempt was to
create 'executable' sections for those tests. However,
I don't know how to include the main library in the
modules used by those tests. I tried to insert my
own package in a 'build-depends' line, but that
didn't work.

Thanks for your tips,
Maurício



More information about the Haskell-Cafe mailing list