tests (by the way you can make tests optional by using cabal flags).
(before library/ executables):
flag build_test
description: build the test executable
default: Fales
To the executable add:
if !flag(build_test)
buildable: False
Marc Weber