Skip to content
Snippets Groups Projects
Commit d860352f authored by Michele Tartara's avatar Michele Tartara
Browse files

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: default avatarMichele Tartara <mtartara@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent f0583b66
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment