that test hook

Ian Lynagh igloo at
Mon Jun 1 20:05:28 EDT 2009

On Tue, Jun 02, 2009 at 12:06:30AM +0100, Duncan Coutts wrote:
> On Mon, 2009-05-18 at 10:23 +1000, Peter Gammie wrote:
> > The arguments to the function are underspecified. What is the Bool?
> It's not used. It means nothing. If it help, the value is always
> False :-)
> If you do the archaeology and work it out I'd be interested to know. In
> Cabal-0.5 runTests is never called. In Cabal-1.1.1 it is always called
> with False.
> In version 0.4 it has the type:
>   runTests :: Bool -> IO ExitCode  -- ^Used for @.\/setup test@
> but it is never called and there's no other comment hinting at what it
> might be for. In version 0.2 it doesn't exist yet. So I've run out of
> clues.

I think it was intended to be for whether the tests were being run for
the installed library, or for the library in the build tree.


More information about the cabal-devel mailing list