TestCommon: Fix QuickCheck import warnings
authorNiklas Hambuechen <niklash@google.com>
Tue, 2 Dec 2014 14:22:03 +0000 (15:22 +0100)
committerNiklas Hambuechen <niklash@google.com>
Tue, 2 Dec 2014 16:34:29 +0000 (17:34 +0100)
commit53bec60146dd49339e1315bfad7884ae89cd39d9
treeacd5ee0ff0aee97b6aea5cd980be1301cab2c81b
parent84e50d4cceb1bc612e3d7a600c9a99ce92df9b15
TestCommon: Fix QuickCheck import warnings

This only appears on systems with QuickCheck >= 2.7.

For TestCommon, it happens because the QC qualified name is only used
in the conditional section.
Fixed by making the import conditional as well.

For Statistics, the `Test.Ganeti.TestCommon` import was not necessary
for QC 2.7 because there `Test.QuickCheck` already provides `counterexample`.
Fixed by giving an import list for `Test.QuickCheck`.

Signed-off-by: Niklas Hambuechen <niklash@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
test/hs/Test/Ganeti/TestCommon.hs
test/hs/Test/Ganeti/Utils/Statistics.hs