TestCommon: Fix QuickCheck import warnings
authorNiklas Hambuechen <niklash@google.com>
Tue, 2 Dec 2014 14:22:03 +0000 (15:22 +0100)
committerPetr Pudlak <pudlak@google.com>
Mon, 22 Jun 2015 16:14:37 +0000 (18:14 +0200)
commitdb399602a2176f6456c9d48012e98bfe8e2c78b0
treeaf011dd112e07ebe40672653f0bd0c21b9830bbc
parent30f1a101195c6e6442a34fc43858efa87fd23d0c
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>

Cherry-picked-from: 53bec60146dd49339e1315bfad7884ae89cd39d9
Signed-off-by: Petr Pudlak <pudlak@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
test/hs/Test/Ganeti/TestCommon.hs
test/hs/Test/Ganeti/Utils/Statistics.hs