From 51710c38b04fe65a73e09614e8da36dcdf249a3f Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Wed, 20 Aug 2014 12:35:36 +0900 Subject: [PATCH] trying to fix Travis CI. --- test/GhcPkgSpec.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/GhcPkgSpec.hs b/test/GhcPkgSpec.hs index e939809..991da50 100644 --- a/test/GhcPkgSpec.hs +++ b/test/GhcPkgSpec.hs @@ -2,6 +2,9 @@ module GhcPkgSpec where import Language.Haskell.GhcMod.GhcPkg +#if __GLASGOW_HASKELL__ <= 706 +import Language.Haskell.GhcMod.Types +#endif import System.Directory import System.FilePath (()) @@ -11,7 +14,7 @@ spec :: Spec spec = do describe "getSandboxDb" $ do -- ghc < 7.8 -#if !MIN_VERSION_ghc(7,8,0) +#if __GLASGOW_HASKELL__ <= 706 it "does include a sandbox with ghc < 7.8" $ do cwd <- getCurrentDirectory getPackageDbStack "test/data/" `shouldReturn` [GlobalDb, PackageDb $ cwd "test/data/.cabal-sandbox/i386-osx-ghc-7.6.3-packages.conf.d"]