From d860352f42b75401a8009ee9894392857da53072 Mon Sep 17 00:00:00 2001 From: Michele Tartara Date: Thu, 11 Apr 2013 13:33:52 +0200 Subject: [PATCH] Compatibility fix for GHC 7 Importing an instance, like JSON, automatically allows the names of all its functions to be used. If one of this functions (namely showJSON) is imported separately, GHC 6 is fine with that, but GHC 7 emits a warning (therefore, the compilation of Ganeti fails because it requires no warnings). This patch fixes the build for GHC 7 and has no impact on GHC 6. Note that the same does not apply to the import of readJSON, because that function is actually used in the same file, so it must be imported separately. Signed-off-by: Michele Tartara Reviewed-by: Helga Velroyen --- src/Ganeti/OpCodes.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ganeti/OpCodes.hs b/src/Ganeti/OpCodes.hs index 66d6e79..080529b 100644 --- a/src/Ganeti/OpCodes.hs +++ b/src/Ganeti/OpCodes.hs @@ -48,7 +48,7 @@ module Ganeti.OpCodes ) where import Data.Maybe (fromMaybe) -import Text.JSON (readJSON, showJSON, JSON, JSValue, makeObj) +import Text.JSON (readJSON, JSON, JSValue, makeObj) import qualified Text.JSON import Ganeti.THH -- 1.7.10.4